/* Main styles */
:root, [data-bs-theme=light] {
    --login-primary: #0d6efd;
    --login-primary-hover: #0b5ed7;
    --login-bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --login-card-bg: #ffffff;
    --login-text: #212529;
    --login-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-bs-theme=dark] {
    --login-primary: #0d6efd;
    --login-primary-hover: #0a58ca;
    --login-bg-gradient: linear-gradient(135deg, #212529 0%, #343a40 100%);
    --login-card-bg: #2b3035;
    --login-text: #f8f9fa;
    --login-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body {
    background: var(--login-bg-gradient);
    color: var(--login-text);
    min-height: 100vh;
}
        

/* Full height layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /*background-color: #f8f9fa;*/
}

.wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Default sidebar */
/* Sidebar styles */
#sidebar {
    width: 240px;
    min-height: 100vh;
    transition: all 0.3s ease;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

/* Content next to sidebar */
#content {
    margin-left: 240px;
    width: calc(100% - 240px);
    transition: all 0.3s ease;
    padding: 0 20px;
}

/* Sidebar collapsed (desktop) */
#sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

#content.expanded {
    margin-left: 0;
    width: 100%;
}

        
        
.theme-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    opacity: 0.8;
}


/*#sidebar {
    min-width: 240px;
    max-width: 240px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    transition: all 0.3s;
    z-index: 1040;
}*/

/* Main content */
/*#content {
    flex: 1;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    transition: all 0.3s;
}*/

/* Sidebar styles */
/*#sidebar {
    min-width: 240px;
    max-width: 240px;
    min-height: 100vh;
    transition: all 0.3s;
}*/


.min-vh-100 {
    min-height: 100vh;
}
#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 10px 15px;
    display: block;
    text-decoration: none;
}

#sidebar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#sidebar ul li.active > a {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Content styles */
/*#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
}*/

#content.active {
    width: 100% !important;
}

/* Avatar styles */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #6c757d;
    color: white;
    font-weight: bold;
}

/* Table styles */
.table-responsive {
    overflow-x: auto;
}

/* Card styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Button styles */
.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
}

/* Clock styles */
.clock {
    display: inline-block;
    text-align: center;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: none;
    }
    
    .card {
        border: none;
        box-shadow: none;
    }
}


.password-requirements {
    margin-top: 8px;
    font-size: 0.85rem;
}
.password-requirements li {
    margin-bottom: 3px;
}
.password-requirements .valid {
    color: #28a745 !important;
}
.password-requirements .valid i {
    display: none;
}
.password-requirements .valid::before {
    content: "✓ ";
    color: #28a745;
}



/* Push content to the right on desktop */
@media (min-width: 768px) {
    #content {
        margin-left: 240px;
    }
}

/* Mobile overlay style */
@media (max-width: 767.98px) {
  #sidebar {
    left: -240px;
    transform: translateX(-100%);
  }
  
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  #sidebar.active + .overlay {
    display: block;
  }
  
  #sidebar.active ~ #content {
    margin-left: 0;
  }


    #content {
        margin-left: 0;
        width: 100%;
    }

    #sidebar.active {
        position: fixed !important;
        top: 0;
        left: 250px !important;
        min-width: 280px !important;
        transform: translateX(0);
        z-index: 99999;
    }

    /**/#content.overlay {
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
    }

    #content.overlay::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 900;
    }
}




.bg-danger-light {
    background-color: rgba(220, 53, 69, 0.1);
}
/* Hide sidebar by default on mobile */
/*@media (max-width: 767.98px) {
    #sidebar {
        left: -240px;
    }

    #sidebar.active {
        left: 0;
    }

    #content {
        margin-left: 0;
    }

    #content.overlay::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0,0,0,0.5);
        z-index: 1030;
    }
}*/


    .blink {
      animation: blink-animation 1s steps(2, start) infinite;
    }

    @keyframes blink-animation {
      to {
        visibility: hidden;
      }
    }

