@import url("https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");
@import 'bootstrap-icons/font/bootstrap-icons.css';
* {
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}
/*login module */

.loginB {
    background: url("/images/gymBgNew.jpg") no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
    box-sizing: border-box; /* Ensures padding doesn't affect overall height */
}

#cardlogin {
    max-width: 450px;
    width: 100%;
    background-color: rgba(25, 25, 25, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    padding: 20px; /* Added padding inside the card */
    margin: 0 auto;
}

.form-floating > input {
    border-radius: 10px;
    border: 1px solid #444;
    background-color: #ffffff;
    color: #000000;
}

.form-floating > label {
    color: #aaa;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #fff;
    background-color: transparent;
}

.form-floating > .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#loginButton {
    background-color: #0d6efd;
    border: none;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
}

#loginButton:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

.forgotP {
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgotP:hover {
    color: #0d6efd !important;
    text-decoration: underline;
}

/* Mobile Responsive Adjustments */
@media (max-width: 576px) {
    #cardlogin {
        border-radius: 10px;
        margin: 0 auto;
    }

    .card-body {
        padding: 1.25rem 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    #loginButton {
        padding: 10px;
    }

    .container {
        padding: 0.5rem !important;
    }

    .form-floating {
        margin-bottom: 1rem !important;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    h1 {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1rem 0.75rem;
    }

    img {
        width: 80px !important;
        height: 80px !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Shake animation for invalid inputs */
@keyframes shake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

#cardlogin {
    background: linear-gradient(
        180deg,
        rgba(82, 115, 255, 0.5) 0%,
        rgba(43, 61, 139, 0.5) 49%,
        rgba(18, 26, 60, 0.5) 100%
    );
    width: 30rem;
    border-radius: 10px;
    margin: 0 auto;
    border-style: none;
}
/* Responsive*/
@media (max-width: 576px) {
    .card {
        width: 90%;
        padding: 20px;
    }

    .btn {
        font-size: 1rem;
        padding: 10px;
    }
}
/* end of login module */

/* side bar design */
:root {
    --primary-color: #4e73df;
    --dark-color: #5a5c69;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 80px;
}
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
#sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #273880 0%, #1e2746 100%);
    transition: width 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-logo {
    padding: 20px 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.sidebar-logo h1 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
}

.toggle-btn {
    background-color: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    font-size: 25px ;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 20px;
    margin: 10px 15px 10px 15px;
}

.toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
 
}

.sidebar-nav {
    padding: 0;
    list-style: none;
    margin-top: 20px;
}

.sidebar-item {
    margin-bottom: 5px;
    padding: 0 15px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.sidebar-link i {
    margin-right: 15px;
    font-size: 18px;
}

.sidebar-dropdown {
    padding-left: 25px;
    list-style: none;
}

#multi {
    padding-left: 15px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* Main Content Area */
.main {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    transition: width 0.3s ease, margin-left 0.3s ease;
    
   /* background-color: #f8f9fc;
    min-height: 100vh;
    padding: 20px;*/
}
/* Hide scrollbars for all elements */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
    display: none; /* WebKit browsers (Chrome, Safari, Edge) */
}

/* Specific scrollbar hiding for main content */
.main::-webkit-scrollbar {
    display: none;
}


/* Hide scrollbars for table containers */
.table-responsive::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbars for modal content */
.modal-body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbars for sidebar */
#sidebar::-webkit-scrollbar {
    display: none;
}

#sidebar.collapsed + .main {
    width: calc(100% - var(--sidebar-collapsed-width));
    margin-left: var(--sidebar-collapsed-width);
}

.top-bar {
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-bar h2 {
    font-size: 24px;
    font-weight: 1000;
    margin: 0;
    color: var(--dark-color);
}



/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--dark-color);
}

.card-body {
    padding: 20px;
}

/* Profile Section */
.profile-section .img-thumbnail {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(78, 115, 223, 0.1);
    padding: 3px;
    background-color: #fff;
    transition: all 0.3s;
}

.profile-section .img-thumbnail:hover {
    border-color: var(--primary-color);
}

.profile-status {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 15px;
    border-radius: 30px;
}

/* Info Sections */
.info-label {
    color: #858796;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
}

.info-value {
    font-weight: 500;
    margin-bottom: 0;
    font-size: 15px;
}

.info-item {
    background-color: #f9fafd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.info-item:hover {
    background-color: #f0f2fa;
    box-shadow: 0 2px 8px rgba(78, 115, 223, 0.1);
}

/* Attendance Table */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #5a5c69;
    border-bottom: 2px solid #e3e6f0;
    padding: 12px 15px;
    font-size: 14px;
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-color: #e3e6f0;
}

.table tbody tr:hover {
    background-color: #f9fafd;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

/* Buttons */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3a5cc9;
    border-color: #3a5cc9;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 6px;
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    font-size: 12px;
    border-radius: 30px;
}

.badge.bg-success {
    background-color: #1cc88a !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    #sidebar {
        width: var(--sidebar-collapsed-width);
    }

    .main {
        width: calc(100% - var(--sidebar-collapsed-width));
        margin-left: var(--sidebar-collapsed-width);
    }

    .sidebar-logo h1,
    .sidebar-logo span,
    .sidebar-link span {
        display: none;
    }
}

@media (max-width: 767px) {
    .main {
        padding: 15px !important;
    }
}

/* end of side bar design */

/* camera */

.camera-container {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

#camera,
#capturedImage {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.modal-lg {
    max-width: 900px;
}
/* search bar */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
    background-color: white;
    color: #6c757d;
}

.input-group .btn:hover {
    color: #273880;
    background-color: #f8f9fa;
}

#searchInput:focus {
    box-shadow: none;
    border-color: #ced4da;
}
/* for calendar design */

input[type="date"] {
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
/* for gender input design */
.form-select {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
/* for rfid design */
.rfid-container {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

#rfid_code {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

#startRFIDReader {
    min-width: 120px;
}

#startRFIDReader.reading {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}
/* Alert Styles */
.alert {
    margin-bottom: 1rem;
    animation: slideIn 0.5s ease-out;
    
}

.alert-dismissible {
    padding-right: 3rem;
}

.alert ul {
    padding-left: 1.5rem;
    list-style: none;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading State Styles */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}
.scanning {
    background-color: #ffd !important;
    border-color: #fd7e14 !important;
    box-shadow: 0 0 0 0.25rem rgba(253, 126, 20, 0.25) !important;
}
.table-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);

    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.search-box {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

.search-box input {
    padding-left: 40px;
  
    border: 1px solid #e3e6f0;
    background-color: #f8f9fc;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fc;
    color: #4e73df;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 15px 20px;
    border-top: none;
}

.table tbody tr {
    transition: all 0.3s;
}

.table tbody tr:hover {
    background-color: #f8f9fc;
}

.table td {
    padding: 15px 20px;
    vertical-align: middle;
    border-color: #f0f0f0;
}

/* Member Avatar */
.member-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f8f9fc;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h6 {
    font-weight: 600;
    color: #333;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge i {
    margin-right: 5px;
    font-size: 14px;
}

.status-active {
    background-color: rgba(28, 200, 138, 0.1);
    color: #1cc88a;
}

.status-inactive {
    background-color: rgba(231, 74, 59, 0.1);
    color: #e74a3b;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fc;
    border: none;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view {
    color: #4e73df;
}

.btn-edit {
    color: #f6c23e;
}

.btn-void {
    color: #fd7e14;
}

.btn-delete {
    color: #e74a3b;
}

.btn-action:hover {
    background-color: #eaecf4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Table Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    border-top: 1px solid #f0f0f0;
}

.showing-entries {
    font-size: 13px;
    color: #858796;
}

/* Delete Modal */
.delete-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(231, 74, 59, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.delete-icon i {
    font-size: 40px;
    color: #e74a3b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-header {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        max-width: 100%;
    }

    .table-footer {
        flex-direction: column;
        gap: 15px;
    }

    .showing-entries {
        text-align: center;
    }

    .pagination-container {
        margin: 0 auto;
    }
    
    /* Bootstrap 5 Pagination Styling */
    .pagination {
        margin-bottom: 0;
    }
    
    .page-link {
        color: #4e73df;
        border-color: #e3e6f0;
    }
    
    .page-link:hover {
        color: #2e59d9;
        background-color: #eaecf4;
        border-color: #e3e6f0;
    }
    
    .page-item.active .page-link {
        background-color: #4e73df;
        border-color: #4e73df;
    }
    
    .page-item.disabled .page-link {
        color: #858796;
        background-color: #fff;
        border-color: #e3e6f0;
    }

    .action-buttons {
        flex-wrap: wrap;
    }
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
}

/* Step indicators */
.step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    background-color: #4e73df !important;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.25);
}

.step-indicator.active .step-title {
    color: #4e73df !important;
    font-weight: 600;
}

/* Form styling */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.25);
}

/* Button styling */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
}

.btn-primary:hover {
    background-color: #3a5cca;
    border-color: #3a5cca;
}

.btn-success {
    background-color: #1cc88a;
    border-color: #1cc88a;
}

.btn-success:hover {
    background-color: #169b6c;
    border-color: #169b6c;
}

/* Animation for step transitions */
.step-content {
    transition: all 0.3s ease;
}

/* Summary styling */
.summary-item {
    position: relative;
    padding-bottom: 8px;
}

.image-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.preview-content {
    max-width: 100%;
    max-height: 100%;
    position: relative;
}

.preview-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid white;
    border-radius: 3px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Staff Management Custom Styles */

/* General improvements */
.staff-content {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}
.member-content {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.card {
    transition: all 0.2s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Avatar circles */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.avatar-circle.large {
    width: 70px;
    height: 70px;
    font-size: 24px;
}

/* Position badge styling */
.position-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
}

/* Status indicator styling */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-indicator:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-indicator.active {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.status-indicator.inactive {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.status-indicator.active:before {
    background-color: #198754;
}

.status-indicator.inactive:before {
    background-color: #dc3545;
}

/* Schedule button styling */
.schedule-btn {
    background-color: #f8f9fa;
    border: none;
    border-radius: 50px;
    color: #495057;
    padding: 0.35rem 0.75rem;
}

.schedule-btn:hover {
    background-color: #e9ecef;
    color: #212529;
}

/* Action button styling */
.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background-color: #f8f9fa;
}

/* Schedule modal styling */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.schedule-day-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.day-label {
    font-weight: 600;
    color: #495057;
}

.time-slot {
    font-size: 0.875rem;
    color: #6c757d;
}

.no-schedule-placeholder {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 12px;
    color: #6c757d;
}

/* Status toggle in modal */
.status-toggle-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.status-option {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-option:hover {
    border-color: #adb5bd;
}

.status-option.selected {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.status-option input {
    position: absolute;
    opacity: 0;
}

.status-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    cursor: pointer;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.status-icon.active {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.status-icon.inactive {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.status-label span {
    font-weight: 600;
}

.status-label small {
    color: #6c757d;
    font-size: 0.75rem;
    text-align: center;
}

/* Empty state styling */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #adb5bd;
    margin-bottom: 1.5rem;
}

/* Style the search container */
.search-container {
    position: relative;
}

.search-container input {
    padding-left: 2.5rem;
    height: 38px;
    border-radius: 50px;
}

.search-container input:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

/* Responsive improvements */
@media (max-width: 992px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .d-flex.gap-2 {
        margin-top: 1rem;
        width: 100%;
    }

    .search-container {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .status-toggle-container {
        grid-template-columns: 1fr;
    }
}

/* Add smooth animations */
.dropdown-menu {
    animation: fadeIn 0.2s ease-in-out;
}

.modal-content {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staff Registration Modal Styles */

/* Modal styling */
#staffRegistrationModal .modal-content {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Modal header icon */
.modal-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Section titles */
.section-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f1f1;
}

/* Multi-step form progress */
.form-progress {
    margin-bottom: 2rem;
}

.form-progress .step {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    position: relative;
    cursor: default;
}

.form-progress .step.active {
    color: #0d6efd;
    font-weight: 600;
}

.form-progress .step.completed {
    color: #198754;
}

.form-progress .step:before {
    content: "";
    width: 20px;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 50%;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.form-progress .step.active:before {
    background-color: #0d6efd;
}

.form-progress .step.completed:before {
    background-color: #198754;
}

/* Form step visibility */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Weekday selector */
.weekday-selector .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.weekday-selector .btn-group .btn {
    flex: 1;
    min-width: 60px;
    border-radius: 0.5rem !important;
    font-weight: 500;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.weekday-selector .btn-check:checked + .btn-outline-secondary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Time picker styling */
.timepicker {
    position: relative;
}

.timepicker .form-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    z-index: 5;
}

/* Password field with toggle visibility */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    z-index: 5;
}

.password-toggle:hover {
    color: #0d6efd;
}

/* Password strength meter */
.password-strength {
    margin-top: 0.5rem;
}

.strength-meter {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

.strength-checklist {
    list-style: none;
    padding-left: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.strength-checklist li {
    margin-bottom: 0.25rem;
}

.strength-checklist li.valid {
    color: #198754;
}

/* Schedule preview */
.schedule-preview {
    display: none; /* Hidden by default */
}

.schedule-preview.active {
    display: block;
}

.schedule-preview-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.schedule-day-chip {
    background-color: #f8f9fa;
    border-radius: 50px;
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-day-chip i {
    color: #0d6efd;
}

/* Form validation */
.form-floating > .form-control:focus ~ label {
    color: #0d6efd;
}

.form-floating > .form-control.is-invalid ~ label {
    color: #dc3545;
}

.form-floating > .form-control.is-valid ~ label {
    color: #198754;
}

/* Button styling */
#staffRegistrationModal .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
}

#staffRegistrationModal .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#staffRegistrationModal .btn-success {
    background-color: #198754;
    border-color: #198754;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .weekday-selector .btn-group {
        flex-wrap: wrap;
    }

    .weekday-selector .btn-group .btn {
        flex: 1 0 30%;
        margin-bottom: 5px;
    }

    .form-progress .step {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .form-progress .step {
        font-size: 0.7rem;
    }

    .weekday-selector .btn-group .btn {
        font-size: 0.75rem;
        padding: 0.25rem;
    }
}

#sidebar.collapsed .sidebar-link span,
#sidebar.collapsed .sidebar-logo span,
#sidebar.collapsed .sidebar-logo h1 {
    display: none;
}

/* Prevent flickering during sidebar transitions */
#sidebar.collapsed .sidebar-link {
    justify-content: center;
}

#sidebar.collapsed .sidebar-link i {
    margin-right: 0;
}

/* Ensure smooth transitions for all sidebar elements */
.sidebar-link span,
.sidebar-logo span,
.sidebar-logo h1 {
    transition: opacity 0.3s ease, display 0.3s ease;
}

 /* Enhanced sidebar state management - Fixed conflicts */
#sidebar {
    will-change: width;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Prevent flickering during toggle */
#sidebar.toggling {
    pointer-events: none;
}

#sidebar.toggling * {
    pointer-events: none;
}

/* Collapsed state inherits from #sidebar above */

/* Sidebar links - specific targeting */
.sidebar-link {
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Sidebar text elements - specific targeting */
.sidebar-link span,
.sidebar-logo span,
.sidebar-logo h1 {
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Image preview styles for edit modals */
.edit-modal-image-preview {
    transition: opacity 0.3s ease;
}

.edit-modal-image-preview:hover {
    opacity: 0.8;
}

.edit-modal-image-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.edit-modal-image-label {
    transition: all 0.3s ease;

}

.edit-modal-image-label:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Loading animation for image preview */
.image-preview-loading {
    position: relative;
}

.image-preview-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error state for image preview */
.image-preview-error {
    border: 2px solid #dc3545 !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}


.created-by-info {
    display: flex;
    flex-direction: column;
}
.creator-name {
    font-weight: 500;
    color: #333;
}
.creator-type {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Edit Schedule Modal Styles */
#editScheduleModal .modal-content {
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

#editScheduleModal .modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

#editScheduleModal .modal-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

#editScheduleModal .alert-info {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
    color: #0c5460;
}

#editScheduleModal .weekday-selector .btn-group {
    gap: 0.25rem;
}

#editScheduleModal .weekday-selector .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#editScheduleModal .weekday-selector .btn-check:checked + .btn-outline-secondary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    transform: scale(1.05);
}

#editScheduleModal .timepicker {
    position: relative;
}

#editScheduleModal .timepicker .form-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

#editScheduleModal .schedule-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

#editScheduleModal .schedule-preview.active {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #e7f3ff 0%, #ffffff 100%);
}

#editScheduleModal .schedule-day-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

#editScheduleModal .schedule-day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#editScheduleModal .day-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

#editScheduleModal .time-slot {
    font-size: 0.875rem;
    color: #6c757d;
}

#editScheduleModal .time-slot i {
    color: #0d6efd;
}

/* Loading state styles */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .spinner-border-sm {
    margin-right: 0.5rem;
}

/* Alert styles for schedule updates */
.alert {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert i {
    font-size: 1.1rem;
}

/* Responsive adjustments for edit schedule modal */
@media (max-width: 768px) {
    #editScheduleModal .modal-dialog {
        margin: 1rem;
    }
    
    #editScheduleModal .weekday-selector .btn-group {
        flex-wrap: wrap;
    }
    
    #editScheduleModal .weekday-selector .btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }
}

@media (max-width: 576px) {
    #editScheduleModal .weekday-selector .btn {
        min-width: calc(33.333% - 0.25rem);
        font-size: 0.875rem;
    }
    
    #editScheduleModal .modal-body {
        padding: 1rem;
    }
}