/* base.css */

/* CSS Variables */
:root {
    /* bgs */
    --shadow: 0 3px 5px rgba(0, 0, 0, .5);
    --main-color: #242424;
    --main-color-rgb: 36,36,36;
    --main2-color: #242424;
    --main2-color-rgb: 127,1,1;
    --main3-color:  #7F0A01;
    --main3-color-rgb: 127,10,1;
    --accent-color: #AC0D00;
    --accent-color-rgb: 172,13,0;
    --accent2-color: #7F0A01;
    --accent2-color-rgb: 127,10,1;
    --accent3-color: #3B3C3C;
    --accent3-color-rgb: 59,60,60;
    /* fonts */
    --font-color: #FFFFFF;
    --font-dark-color: #F35607;
    --font-hover-color: #D4AF37;
    /* cars Classes */
    --car_class_S: 255, 215, 0;
    --car_class_A: 255, 78, 54;
    --car_class_B: 208, 22, 255;
    --car_class_C: 0, 252, 21;
    --car_class_D: 55, 148, 255;
    --car_class_E: 190,190,190;
}

svg {
    filter: drop-shadow(0 0 2px rgba(0,0,0,.3));
}

/* Keyframes for Spipa Circle Animation */
@keyframes spipa-circle {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Apply Animation to Body */
body {
    background-color: #212121;
    color: #999;
    font-family: -apple-system, system-ui, BlinkMacSystemFont;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(270deg, #ff6b6b, #556270, #4ecdc4); /* Updated for Spipa Circle */
    background-size: 600% 600%; /* Updated for Spipa Circle */
    animation: spipa-circle 8s ease infinite; /* Updated for Spipa Circle */
}

body.login {
    background-image: url('../images/stars.png'), linear-gradient(0deg, rgba(0,0,0, .8), rgba(0,0,0,.4));
    background-attachment: fixed;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

::-moz-selection {
    background: rgba(255, 255, 255, .05)
}

::selection {
    background: rgba(255, 255, 255, .05)
}

::-webkit-scrollbar-track {
    -moz-box-shadow: inset 0 0 5px rgba(0,0,0, .3);
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0, .3);
    box-shadow: inset 0 0 5px rgba(0,0,0, .3);
    background-color: var(--main2-color);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: var(--main-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent3-color);
}

a {
    color: var(--font-color);
    text-decoration: none;
}

a:hover, a:active, a:focus, a:active {
    outline: none;
    color: var(--font-hover-color);
    text-decoration: underline;
}

/* .profile-soundcloud,
.profile-youtube, */
.profile-wrapper,
.comments .user-avatar .user-pic,
.autocomplete-suggestions,
.footer-shadow,
.dropdown-menu,
.modal,
.paginations,
.box,
.main_menu,
.quick-links,
.bar_holder >.progress,
.php__header>.php--avatar>div>img,
header.header .mobile-info-menu,
header.header,
.panel,
.shadow {
    box-shadow: var(--shadow);
}

@media (min-width: 767px) {
    .header.header,
    .quick-links {
        box-shadow: 0 0 0 transparent !important;
    }
    .header-shadow {
        box-shadow: var(--shadow) !important;
    }
}

/* Added table styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px; /* Reduced font size */
    text-align: left;
}

.table th {
    background-color: var(--main3-color);
    color: var(--font-color);
    padding: 5px; /* Reduced padding */
    text-align: center;
    border: 1px solid #dddddd; /* Adding border for boxing effect */
}

.table td {
    padding: 5px; /* Reduced padding */
    border: 1px solid #dddddd; /* Adding border for boxing effect */
    text-align: center;
}

.table tr:nth-child(even) {
    background-color: var(--main-color);
}

.table tr:hover {
    background-color: var(--accent3-color);
}

/* Specific styles for gang details table */
.gang-details-table th, .gang-details-table td {
    text-align: left;
    padding: 5px; /* Reduced padding */
    border: 1px solid #dddddd; /* Adding border for boxing effect */
}

.gang-details-table th {
    background-color: var(--main3-color);
    color: var(--font-color);
}

.gang-details-table tr:nth-child(even) {
    background-color: var(--main-color);
}

/* Animated Background Styles */
body.animated-bg {
    background: linear-gradient(270deg, #ff6b6b, #556270, #4ecdc4);
    background-size: 600% 600%;
    animation: spipa-circle 8s ease infinite;
}
/* Added styles for modernized mail UI */

.page_container {
    padding: 20px;
    background-color: #2b2b2b;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page_title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

.message_container {
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message_header {
    display: flex;
    justify-content: space-around;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 1px;
}

.sender {
    font-weight: bold;
}

.received {
    font-style: italic;
}

.message_body {
    font-size: 16px;
    color: #ddd;
    margin-bottom: 20px;
}

.message_actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.message_actions .btn {
    margin: 0 10px; /* Add some spacing between buttons */
}
.message_expiry {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 20px;
}

.contact_history {
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.history_title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.history_body {
    font-size: 14px;
    color: #ccc;
}

.history_entry {
    margin-bottom: 10px;
}

.history_time {
    font-size: 12px;
    color: #aaa;
    display: block;
}

.history_sender {
    font-weight: bold;
    color: #fff;
}

.history_message {
    padding-left: 20px;
    color: #ddd;
}

/* Styles for form elements and buttons */
.form-group {
    margin-bottom: 15px;
    color: var(--font-color);
}

.form-control {
    width: 100%;
    padding: 10px;
    background-color: var(--main-color);
    color: var(--font-color);
    border: 1px solid var(--accent2-color);
    border-radius: 5px;
    margin-top: 5px;
    box-sizing: border-box;
}

.btn {
    padding: 10px 10px;
    color: #fff;
    background-color: var(--accent-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    margin-top: 10px;
}

.btn-primary {
    background-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent3-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px; /* Consistent font size */
    text-align: left;
}

.table th, .table td {
    padding: 10px;
    border: 1px solid #dddddd;
}

.table tr:nth-child(even) {
    background-color: var(--main2-color);
}

.table tr:hover {
    background-color: var(--accent3-color);
}

/* Ensure all main menu items have consistent styling */
.main_menu ul, .main_menu li {
    list-style: none; /* Removes default list styling */
    margin: 0;
    padding: 0;
}

.main_menu ul li a {
    background-color: var(--main-color);
    color: var(--font-color);
    border-bottom: 1px solid var(--main2-color);
    display: block; /* Make sure the links are displayed */
    font-size: 13px;
    font-weight: 600;
    line-height: normal;
    padding: 8px 10px;
    text-decoration: none;
    transition: .5s all ease;
    text-shadow: 0 0 2px #000;
}

.sub-menu {
    display: none; /* Hide the submenu by default */
    list-style: none; /* Ensure no bullets are shown */
    padding-left: 0;
}

.main_menu li:hover .sub-menu, .main_menu li:focus .sub-menu {
    display: block; /* Show the submenu on hover or focus */
    padding-left: 0; /* Keep padding consistent */
    list-style: none; /* Ensure no bullets are shown */
}