/* Custom AdminLTE 3 Theme Overrides */
        :root {
            --primary: #0e56d1;
            --secondary: #6c757d;
            --success: #28a745;
            --info: #17a2b8;
            --warning: #ffc107;
            --danger: #dc3545;
            --light: #f8f9fa;
            --dark: #343a40;
        }
        
        .main-header {
            border-bottom: 1px solid #dee2e6;
        }
        
        .main-header .navbar-nav .nav-link {
            position: relative;
        }
        
        .main-sidebar {
            background-color: #222d32;
        }
        
        .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
        .sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
            background-color: #004ca0e8;
            color: #fff;
            border-left: 3px solid #81cb0b;
        }
        
        .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:hover,
        .sidebar-light-primary .nav-sidebar > .nav-item > .nav-link:hover {
            background-color: #004ca0e8;
            color: #fff;
            border-left: 3px solid #81cb0b;
        }
        
        .sidebar .nav-link p {
            display: inline;
            margin-left: 5px;
        }
        
        .brand-link {
            border-bottom: 1px solid #4b545c;
            background-color: #0e56d1;
        }
        
        .brand-link .brand-text {
            font-weight: 600;
        }
        
        .content-header {
            padding: 15px 0.5rem;
        }
        
        /* Custom navbar styles */
        .navbar-custom-menu {
            margin-right: 10px;
        }
        
        .navbar-custom-menu .user-image {
            width: 25px;
            height: 25px;
            margin-right: 5px;
        }
        
        .user-header {
            height: auto;
            padding: 10px;
            text-align: center;
            background: #fff;
        }
        
        .user-header img {
            width: 80px;
            height: 80px;
            border: 3px solid #fff;
        }
        
        .user-footer {
            padding: 10px;
            background-color: #f9f9f9;
        }
        
        .user-footer .btn {
            margin: 0 5px;
        }
        .user-name-display{
                color: #eaecef;
        }
      .user-role-display{
                color: #eaecef;
        }
        /* Treasury name in sidebar */
        .treasury-name {
            padding: 10px;
            text-align: left;
            font-weight: 400;
            font-size: 12px;
            color: #b8c7ce;
            background-color: #0000005e;
            border-bottom: 1px solid #3c8dbc5e;
            overflow: hidden;
        }
        
        /* Dynamic content area */
        #dynamic-content {
            width: 100%;
            min-height: calc(100vh - 100px);
            overflow: auto;
        }
        
        /* Running text styles */
        .running-text {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: #f8f9fa;
            padding: 8.9px;
            border-bottom: 1px solid #ddd;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        #news-reel {
            font-weight: normal;
            color: #333;
            white-space: nowrap;
            display: block;
            width: 100%;
            overflow: hidden;
        }
        
        /* Login overlay styles */
        .login-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgb(199 199 199);
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #06002c;
            background: url('./img/bg1.jpg') transparent;
            background-size: cover;
        }
        
        .login-box {
            width: 360px;
        }
        
        .btn.btn-flat {
            border-radius: 16px;
            -webkit-box-shadow: none;
            -moz-box-shadow: none;
            box-shadow: none;
            border-width: 1px;
            background-color: #2483C5;
        }
  .btn.btn2-flat {
            border-radius: 16px;
            -webkit-box-shadow: none;
            -moz-box-shadow: none;
            box-shadow: none;
            border-width: 1px;
            background-color: #fff;
        }
        
        .login-box-body {
            background-color: rgb(255 255 255 / 68%);
            -webkit-backdrop-filter: saturate(180%) blur(2px);
            backdrop-filter: saturate(180%) blur(2px);
            padding: 20px;
            border-top: 0;
            color: #666;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            border-radius: 15px;
        }
        
        .login-logo {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .login-logo a {
            font-size: 24px;
            font-weight: bold;
            color: #3c8dbc;
        }
        
        .form-control {
            border-radius: 3px;
            box-shadow: none;
            border-color: #d2d6de;
        }
        
        .btn {
            border-radius: 3px;
            font-weight: 600;
        }
        
        .btn-primary {
            background-color: #3c8dbc;
            border-color: #367fa9;
        }
        
        .btn-primary:hover {
            background-color: #367fa9;
            border-color: #2d6a91;
        }
        
        #login-error {
            color: #dd4b39;
            margin-top: 10px;
            display: none;
        }
        
        /* Loading spinner styles */
        .loading-container {
            position: relative;
            width: 100%;
            height: calc(100vh - 1px);
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .loading-content {
            text-align: center;
        }
        
        .loading-content img {
            width: 50px;
            height: 50px;
        }
        
        .loading-content p {
            margin-top: 10px;
            font-weight: bold;
            color: #555;
        }
        
        .hidden {
            display: none !important;
        }
        
        /* Forgot password link */
        .forgot-password {
            text-align: center;
            margin-top: 10px;
        }
        
        .forgot-password a {
            color: #666;
            cursor: pointer;
        }
        
        .forgot-password a:hover {
            color: #3c8dbc;
            text-decoration: underline;
        }
        
        /* Button loading spinner styles */
        #login-button {
            position: relative;
        }
        
        #login-button .loading-spinner {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #3c8dbc;
            border-radius: 16px;
        }
        
        #login-button .button-text {
            visibility: visible;
        }
        
        #login-button.loading .button-text {
            visibility: hidden;
        }
        
        #login-button.loading .loading-spinner {
            display: flex !important;
        }
        
        /* Hide main content initially */
        .wrapper {
            display: none;
        }
        
        /* CAPTCHA Styles */
        .captcha-section {
            
            border-radius: 8px;
           
        }

        .captcha-container {
    text-align: center;
}

.captcha-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.captcha-display {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #00011a, #2483c5);
    padding: 3px;
    border-radius: 6px;
    border: 2px solid #3498db;
    min-width: 140px;
    flex-shrink: 0;
}

.captcha-text {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #ecf0f1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    user-select: none;
    text-transform: uppercase;
}

#refresh-captcha {
    color: #ecf0f1;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#refresh-captcha:hover {
    transform: rotate(90deg);
    color: #3498db;
}

.captcha-input {
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
    flex: 1;
    min-width: 120px;
    text-transform: uppercase; /* Force uppercase display */
}

.captcha-input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
}

.captcha-error {
    font-weight: bold;
}

/* Make CAPTCHA responsive */
@media (max-width: 480px) {
    .captcha-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .captcha-display {
        min-width: 120px;
        padding: 6px 10px;
    }
    
    .captcha-text {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .captcha-input {
        min-width: 100%;
    }
}

@media (max-width: 360px) {
    .captcha-text {
        font-size: 16px;
    }
    
    .captcha-display {
        min-width: 110px;
    }
}
        
        /* Chatbot Css */
        .chat-icon {
            position: fixed;
            bottom: 25px;
            right: 25px;
            width: 40px;
            height: 40px;
            background: #4a6fc7;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transition: all 0.3s ease;
        }
        
        .chat-icon:hover {
            background: #3b5aa6;
            transform: scale(1.05);
        }
        
        .chat-icon i {
            font-size: 24px;
        }
        
        /* Popup styles */
        .chat-popup {
            position: fixed;
            bottom: 100px;
            right: 25px;
            width: 360px;
            height: 500px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            display: none;
            flex-direction: column;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .popup-header {
            background: #4a6fc7;
            color: white;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .popup-header h3 {
            margin: 0;
            font-size: 1.2rem;
        }
        
        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .close-btn:hover {
            transform: rotate(90deg);
        }
        
        .popup-iframe {
            flex: 1;
            border: none;
            width: 100%;
            height: 100%;
        }
        
        /* Overlay when popup is active */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            display: none;
        }
        
        /* Custom treeview styles */
        .nav-treeview {
            margin-left: 15px !important;
        }
        
        .nav-treeview .nav-link {
            padding-left: 15px !important;
        }
        
        .nav-treeview .nav-treeview {
            margin-left: 10px !important;
        }
        
        /* Treeview auto-close fix */
        .nav-sidebar .menu-open > .nav-treeview {
            display: block;
        }
        .content-wrapper>.content {
    padding: 0 !important;
}
        /* Responsive design */
        @media (max-width: 768px) {
            .chat-popup {
                width: 320px;
                height: 400px;
            }
            
            h1 {
                font-size: 2rem;
            }
        }
        
        @media (max-width: 480px) {
            .chat-popup {
                width: 300px;
                right: 10px;
                bottom: 80px;
            }
            
            .chat-icon {
                right: 15px;
                bottom: 15px;
                width: 50px;
                height: 50px;
            }
        }
  .nav-sidebar .nav-link>.right, .nav-sidebar .nav-link>p>.right {
    top: .97rem !important;
}
