/* Import fonts */
@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500&subset=cyrillic&display=swap');

/* Base styles */
body {
    font-family: 'Poppins', 'Roboto', sans-serif !important;
    font-size: 14px;
    line-height: 1.42857143;
    background-color: #fff;
}

/* Dashboard container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Main header styles */
.main-header {
    background-color: #222;
    color: #fff;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

/* Logo styling */
.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
    height: 100%;
}

.navbar-brand img {
    width: 130px;
    /* Increased from 110px */
    height: auto;
}

/* Header content alignment */
.header-content {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.support-area {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav .nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
}

.main-nav .nav-link.active {
    background-color: #333;
    border-radius: 4px;
}

/* Support area styling */
.support-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.support-link:hover {
    text-decoration: none;
    opacity: 0.9;
}

/* Header spacer - creates the white space between headers */
.header-spacer {
    height: 30px;
    background-color: #fff;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 998;
}

/* Sub Navigation */
.sub-nav {
    background-color: #f8f9fa;
    padding: 0;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    z-index: 997;
    height: 50px;
    border-bottom: none;
}

.sub-nav .nav-wrapper {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Navigation pills styling to match exactly */
.nav-pills>li>a {
    position: relative;
    display: block;
    padding: 13px 20px;
    color: #666;
    background-color: transparent;
    text-decoration: none;
}

.nav-pills>li>a:focus,
.nav-pills>li>a:hover {
    text-decoration: none;
    background-color: rgba(145, 158, 171, 0.08);
    border-radius: 10px;
    color: #666;
}

.nav-pills>li.active>a,
.nav-pills>li.active>a:focus,
.nav-pills>li.active>a:hover {
    color: #2065d1 !important;
    background-color: #d1e1f8;
    border-radius: 10px;
    text-decoration: none;
}

/* Sub nav links */
.sub-nav-link {
    color: #666;
    text-decoration: none !important;
    padding: 13px 20px;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: transparent;
}

.sub-nav-link:hover {
    background-color: rgba(145, 158, 171, 0.08);
    color: #666;
    text-decoration: none !important;
}

.sub-nav-link.active {
    color: #2065d1 !important;
    background-color: #d1e1f8;
    border-radius: 10px;
    text-decoration: none !important;
}

.sub-nav-link i {
    width: 20px;
    text-align: center;
}

.logout-link a {
    color: #0d6efd;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

/* Dashboard Content */
.dashboard-content {
    padding-top: 160px;
    /* Increased to account for fixed headers */
    padding-bottom: 30px;
    min-height: calc(100vh - 120px);
    /* Ensures footer stays at bottom */
}

/* Main content area */
.main-content {
    padding-top: 20px;
    min-height: 500px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .sub-nav-link {
        padding: 8px 10px;
        font-size: 12px;
    }

    .sub-nav-link i {
        margin-right: 0;
    }
}

/* Add a global rule to remove underlines from all links */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

/* Dropdown styling */
.dropdown-toggle::after {
    display: none !important;
    /* Remove Bootstrap's default caret */
}

.nav-pills>li.dropdown>a .fa-angle-down {
    font-size: 12px;
    vertical-align: middle;
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    padding: 8px 0;
    min-width: 180px;
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    color: #666;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(145, 158, 171, 0.08);
    color: #2065d1;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    width: 60px;
    height: 60px;
}

.preloader-svg {
    width: 100%;
    height: 100%;
}

.preloader .big-circle {
    stroke: #e0e0e0;
    stroke-width: 2;
    stroke-linecap: round;
    animation: rotate 2s linear infinite;
}

.preloader .small-circle {
    stroke: #4f46e5;
    stroke-width: 2;
    stroke-linecap: round;
    animation: rotate 1.5s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Date selector styling */
.form-inline .form-control {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 14px;
}

.form-inline label {
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.account-balance {
    display: flex;
    flex-direction: column;
}

.txt-color-blue {
    color: #2196f3;
    font-weight: bold;
}

/* Footer Styles */
.dash-footer {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 30px;
    width: auto;

}

.copyright {
    color: #999;
    font-size: 14px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    margin-right: 25px;
    font-size: 14px;
    transition: color 0.2s ease;
    padding: 0 5px;
}

.footer-links a:hover {
    color: #fff;
}

.server-time {
    color: #999;
    font-size: 14px;
    margin-left: auto;
}

#server-time {
    color: #fff;
    margin-left: 5px;
}

@media (max-width: 767px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-left,
    .footer-links {
        justify-content: center;
        align-items: center;
        margin-bottom: 15px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-links a {
        margin: 0 15px 10px;
    }

    .server-time {
        margin: 10px auto 0;
    }
}

/* Cookie notice styling */
.cookies {
    visibility: hidden;
    position: fixed;
    max-width: 380px;
    padding: 30px;
    bottom: -150%;
    left: 40px;
    width: 100%;
    border-radius: 6px;
    background-color: #fff;
    -webkit-box-shadow: 0 16px 24px 2px rgba(65, 20, 20, 0.05), 0 6px 32px 4px rgba(65, 20, 20, 0.1), 0 8px 12px -5px rgba(65, 20, 20, 0.1);
    box-shadow: 0 16px 24px 2px rgba(65, 20, 20, 0.05), 0 6px 32px 4px rgba(65, 20, 20, 0.1), 0 8px 12px -5px rgba(65, 20, 20, 0.1);
    z-index: 90000;
    -webkit-transition: .7s;
    -o-transition: .7s;
    transition: .7s;
}

@media (max-width: 575.98px) {
    .cookies {
        max-width: 100%;
        left: 0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }
}

.cookies.show {
    visibility: visible;
    bottom: 40px;
}

@media (max-width: 575.98px) {
    .cookies.show {
        width: 100%;
        bottom: 0;
    }
}

.cookies .cookies-img {
    text-align: center;
}