/*
 * LoyalReliance Secure HR System - Main Stylesheet
 * Professional, modern styling for all system components
 */

/* ==================================================
   GLOBAL STYLES
================================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    --primary-color: #1a1a1a;
    --secondary-color: #000000;
    --accent-color: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #000000;
    --light-color: #ffffff;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --box-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ==================================================
   NAVIGATION STYLES
================================================== */

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: #1a1a1a !important;
}

.navbar-brand:hover {
    color: #000000 !important;
}

.navbar-brand img {
    filter: none;
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* User dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* ==================================================
   BUTTON STYLES
================================================== */

.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 12px 24px;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: #ffffff;
    border: none;
    color: #000000;
    font-weight: 600;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    color: #000000;
}

.btn-outline-primary {
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* ==================================================
   FORM STYLES
================================================== */

.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 15px;
    font-size: 16px;
    transition: var(--transition);
    background-color: white;
}

.auth-container .form-control {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    width: 100% !important;
    height: calc(3.5rem + 2px) !important;
    padding: 1rem 0.75rem !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    border-radius: 0.375rem !important;
}

.auth-container .form-control:focus {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    outline: none !important;
}

.auth-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.auth-container .form-floating {
    margin-bottom: 1.5rem;
    width: 100% !important;
    position: relative !important;
}

.auth-container .form-floating > .form-control {
    height: calc(3.5rem + 2px) !important;
    line-height: 1.25 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Remove duplicate floating label styles */

.auth-container .form-control.is-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15) !important;
}

.auth-container .form-control.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
    border-radius: 0.375rem !important;
}

/* Hide validation feedback by default */
.auth-container .invalid-feedback,
.auth-container .valid-feedback {
    display: none !important;
}

.auth-container .invalid-feedback.d-block {
    display: block !important;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

/* Proper Bootstrap floating labels for dark theme */
.auth-container .form-floating > label {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 100% !important;
    padding: 1rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    pointer-events: none !important;
    border: 0 !important;
    background: #fff !important;
    color: #000 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    z-index: 2 !important;
    border-radius: 0.375rem !important;
}

.auth-container .form-floating > .form-control:focus ~ label,
.auth-container .form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 1 !important;
    transform: scale(0.85) translateY(-1rem) translateX(0.15rem) !important;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 4px !important;
    padding: 2px 8px !important;
    height: auto !important;
    width: auto !important;
    display: inline-block !important;
    align-items: unset !important;
    backdrop-filter: blur(5px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.auth-container .form-check {
    margin-bottom: 1rem;
}

.auth-container .form-check-input {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
}

.auth-container .form-check-input:checked {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.auth-container .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.auth-container .form-check-label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.auth-container .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 400;
}

.auth-container a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-container a:hover {
    color: #f0f0f0;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 15px;
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* ==================================================
   CARD STYLES
================================================== */

.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    background: #1a1a1a;
    color: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.card .card-header {
    background: rgba(108, 117, 125, 0.2);
    color: white!important;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #333;
}

.card-body {
    padding: 2rem;
    color: white;
}

.card-body .text-xs, .card-body .h5, .card-body i {
    color: white!important;
}

.table-hover>tbody>tr:hover>* {
    color: white!important;
}

.card-footer {
    background-color: rgba(108, 117, 125, 0.1);
    border-top: 1px solid #333;
    padding: 1.5rem;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    color: white;
}

.card .card-header h6 {
    color: #ffffff !important;
}

/* ==================================================
   ALERT STYLES
================================================== */

.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: #d1edff;
    color: #0c5460;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ==================================================
   TABLE STYLES
================================================== */

.table {
    background: #1a1a1a;
    color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 0;
}

.table thead th {
    background: rgba(108, 117, 125, 0.2);
    color: white;
    border: 1px solid #333;
    font-weight: 600;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-top: 1px solid #333;
    border: 1px solid #333;
    vertical-align: middle;
    color: white;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.table-responsive {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: #1a1a1a;
}

/* ==================================================
   BADGE STYLES
================================================== */

.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
}

.badge-success {
    background-color: var(--success-color);
}

.badge-danger {
    background-color: var(--danger-color);
}

.badge-warning {
    background-color: var(--warning-color);
    color: #333;
}

.badge-info {
    background-color: var(--info-color);
}

.badge-secondary {
    background-color: #6c757d;
}

/* ==================================================
   AUTHENTICATION PAGES
================================================== */

.auth-container {
    background: rgba(0, 0, 0, 0.95);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    margin: 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
    overflow: visible;
    max-height: 96vh;
    overflow-y: scroll;
}

.auth-background {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.auth-logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.auth-logo h2 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.6rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.auth-logo p {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.auth-divider span {
    background: rgba(0, 0, 0, 0.95);
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.auth-links {
    text-align: center;
    margin-top: 30px;
}

.auth-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    font-size: 0.9rem;
    gap: 1rem;
}

.form-check-label {
    color: #666;
}

/* ==================================================
   DASHBOARD STYLES
================================================== */

.dashboard-header {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.stat-card {
    background: #1a1a1a;
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ==================================================
   ERROR PAGES
================================================== */

.error-container {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.error-background {
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.error-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ==================================================
   LANDING PAGE STYLES
================================================== */

.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-hero {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
    transition: var(--transition);
}

.btn-hero:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.features-section {
    padding: 80px 0;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* ==================================================
   UTILITY CLASSES
================================================== */

.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: var(--box-shadow) !important;
}

.shadow-lg {
    box-shadow: var(--box-shadow-lg) !important;
}

.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================================================
   RESPONSIVE DESIGN
================================================== */

@media (max-width: 768px) {
    .auth-container {
        padding: 30px 25px;
        margin: 10px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .error-container {
        padding: 40px 25px;
        margin: 20px;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .remember-forgot {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .features-section {
        padding: 60px 0;
    }
    
    .dashboard-header {
        padding: 1.5rem 0;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
} 

/* ===========================================
   ANIMATED NETWORK BACKGROUND
   =========================================== */

.network-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.network-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.network-dots::before,
.network-dots::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.network-dots::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    box-shadow: 
        80px 50px 0 rgba(0, 0, 0, 0.2),
        200px 100px 0 rgba(0, 0, 0, 0.3),
        300px 150px 0 rgba(0, 0, 0, 0.2),
        450px 200px 0 rgba(0, 0, 0, 0.3),
        600px 50px 0 rgba(0, 0, 0, 0.2),
        750px 150px 0 rgba(0, 0, 0, 0.3),
        150px 300px 0 rgba(0, 0, 0, 0.2),
        350px 350px 0 rgba(0, 0, 0, 0.3),
        500px 400px 0 rgba(0, 0, 0, 0.2),
        700px 300px 0 rgba(0, 0, 0, 0.3);
}

.network-dots::after {
    top: 60%;
    left: 80%;
    animation-delay: 3s;
    box-shadow: 
        -80px -50px 0 rgba(0, 0, 0, 0.2),
        -200px -100px 0 rgba(0, 0, 0, 0.3),
        -300px 50px 0 rgba(0, 0, 0, 0.2),
        -450px -150px 0 rgba(0, 0, 0, 0.3),
        -600px 100px 0 rgba(0, 0, 0, 0.2),
        -750px -50px 0 rgba(0, 0, 0, 0.3),
        -150px -200px 0 rgba(0, 0, 0, 0.2),
        -350px 150px 0 rgba(0, 0, 0, 0.3),
        -500px -100px 0 rgba(0, 0, 0, 0.2),
        -700px 50px 0 rgba(0, 0, 0, 0.3);
}

/* Network connection lines */
.network-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 49%, rgba(0, 0, 0, 0.1) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(0, 0, 0, 0.1) 50%, transparent 51%);
    background-size: 100px 100px, 150px 150px;
    animation: network-move 20s linear infinite;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(10px) translateX(-5px);
    }
}

@keyframes network-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100px, -100px);
    }
}

/* Pulse effect for dots */
.network-dots {
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Additional floating particles */
.network-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(0, 0, 0, 0.2), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(0, 0, 0, 0.1), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(0, 0, 0, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(0, 0, 0, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 200px, 300px 300px, 150px 150px, 250px 250px;
    animation: float-particles 15s linear infinite;
}

@keyframes float-particles {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-50px, -50px);
    }
} 

/* Password strength indicator styles */
.password-strength {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 0.5rem;
    display: none;
}

.password-strength.weak {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.password-strength.medium {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.password-strength.strong {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.password-requirements {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.password-requirements strong {
    color: rgba(255, 255, 255, 0.9);
}

/* Show requirements only when password field is focused */
.auth-container .form-control:focus ~ .password-requirements {
    display: block;
}

/* Show password strength only when user is actively typing */
.auth-container .form-control:focus ~ .password-strength,
.auth-container .form-control:not(:placeholder-shown):focus ~ .password-strength {
    display: block;
} 

.nav {
    display: flex;
    flex-wrap: nowrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    flex-direction: row;
}

/* Admin Dashboard Styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #000000 !important;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.sidebar .position-sticky {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.sidebar .nav {
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-user-profile {
    margin-top: auto;
    border-top: 1px solid #333333 !important;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    flex-shrink: 0;
}

.sidebar-user-profile .btn-outline-light {
    border-color: #ffffff;
    color: #ffffff;
}

.sidebar-user-profile .btn-outline-light:hover {
    background-color: #ffffff;
    color: #000000;
}

.sidebar-user-profile .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.sidebar-user-profile .btn-outline-danger:hover {
    background-color: #dc3545;
    color: #ffffff;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    text-decoration: none;
}

.sidebar .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 3px solid #ffffff;
    text-decoration: none;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    color: #ffffff !important;
}

.sidebar .badge {
    font-size: 0.7rem;
    color: #000000 !important;
}

.sidebar-heading {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #cccccc !important;
    margin-bottom: 0.5rem;
}

.sidebar-heading span {
    color: #cccccc !important;
}

/* Ensure sidebar text is always visible */
.sidebar h5 {
    color: #ffffff !important;
}

.sidebar small {
    color: #cccccc !important;
}

.sidebar .text-white {
    color: #ffffff !important;
}

.sidebar .text-muted {
    color: #cccccc !important;
}

/* User profile section specific styles */
.sidebar-user-profile .text-white {
    color: #ffffff !important;
}

.sidebar-user-profile .text-muted {
    color: #cccccc !important;
}

.sidebar-user-profile .fw-bold {
    color: #ffffff !important;
}

/* Statistics Cards - Clean Black & White Theme */
.border-left-primary {
    border-left: 0.25rem solid #000000 !important;
}

.border-left-success {
    border-left: 0.25rem solid #000000 !important;
}

.border-left-info {
    border-left: 0.25rem solid #000000 !important;
}

.border-left-warning {
    border-left: 0.25rem solid #000000 !important;
}

.text-xs {
    font-size: 0.7rem;
}

.text-gray-300 {
    color: #cccccc !important;
}

.text-gray-800 {
    color: #ffffff !important;
}

/* Card shadows */
.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(0, 0, 0, 0.1) !important;
}

/* LRS Specific Styles */
.lrs-badge {
    background: linear-gradient(45deg, #000000, #333333);
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 1px;
}

.gate-badge {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: #000000;
    color: #ffffff;
}

.status-approved {
    background-color: #000000;
    color: #ffffff;
}

.status-rejected {
    background-color: #666666;
    color: #ffffff;
}

.quick-action-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
}

.btn-lg.btn-block {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Dashboard Header */
.admin-header {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}

/* Activity Timeline */
.activity-item {
    border-left: 3px solid #e9ecef;
    padding-left: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #000000;
}

.activity-item.success::before {
    background-color: #000000;
}

.activity-item.warning::before {
    background-color: #666666;
}

.activity-item.danger::before {
    background-color: #666666;
}

.sidebar-user-profile i {
    color: #ffffff !important;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1050;
    background-color: #000000;
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    width: 50px;
}

.mobile-menu-toggle:hover {
    background-color: #333333;
    transform: scale(1.05);
}

.mobile-menu-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        position: fixed !important;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        z-index: 1040;
        background-color: #000000 !important;
        transition: left 0.3s ease;
        padding: 60px 0 0;
        overflow-y: auto;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar .position-sticky {
        position: relative !important;
        height: auto;
    }
    
    main {
        margin-left: 0 !important;
        padding-top: 80px;
        transition: margin-left 0.3s ease;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1030;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .sidebar .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
        border-radius: 0;
    }
    
    .sidebar-heading {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        background-color: rgba(255, 255, 255, 0.05);
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar-user-profile {
        margin-top: 2rem;
        padding: 1.5rem;
        border-top: 2px solid #333333;
    }
    
    .btn-lg.btn-block {
        margin-bottom: 0.5rem;
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 15%;
    }
    
    main {
        padding-top: 30px!important;
    }
}

/* Training Status Indicators */
.training-overdue {
    background: linear-gradient(45deg, #000000, #333333);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Table Enhancements */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
} 

/* Clean Button Styles */
.btn-primary {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #333333;
    border-color: #333333;
    color: #ffffff;
}

.btn-success {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #333333;
    border-color: #333333;
    color: #ffffff;
}

.btn-warning {
    background-color: #666666;
    border-color: #666666;
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #888888;
    border-color: #888888;
    color: #ffffff;
}

.btn-info {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.btn-info:hover {
    background-color: #333333;
    border-color: #333333;
    color: #ffffff;
}

/* Card Headers */
.card-header {
    background-color: rgba(108, 117, 125, 0.2);
    border-bottom: 1px solid #333;
}

.card-header h6 {
    color: white;
    font-weight: bold;
}

.card-header h5 {
    color: white;
    font-weight: bold;
}

/* Statistics Icons - Remove override to allow colored icons */

/* Badge Colors */
.badge.bg-primary {
    background-color: #000000 !important;
}

.badge.bg-success {
    background-color: #000000 !important;
}

.badge.bg-warning {
    background-color: #666666 !important;
    color: #ffffff !important;
}

.badge.bg-danger {
    background-color: #666666 !important;
    color: #ffffff !important;
}

.badge.bg-info {
    background-color: #000000 !important;
}

.badge.bg-dark {
    background-color: #000000 !important;
}

.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #000000 !important;
} 