/* Enhanced Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-icon {
    transition: transform 0.3s ease;
}

.nav-link {
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
    color: rgba(255,255,255,0.9);
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateX(5px);
    color: white;
}

.nav-link.active {
    background-color: rgba(255,255,255,0.3);
    font-weight: 600;
}

.nav-link i.bi-chevron-right {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-link:hover i.bi-chevron-right {
    opacity: 1;
}

.logout-btn {
    background-color: rgba(0,0,0,0.1);
    margin-top: auto;
}

.logout-btn:hover {
    background-color: rgba(0,0,0,0.2);
}

/* Mobile Toggle Button (add this to your HTML) */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1100;
    background-color: #66CDAA;
    border: none;
    color: white;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        height: 100vh;
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .nav-text {
        display: none;
    }
    
    .nav-link {
        justify-content: center;
        padding: 1rem !important;
    }
    
    .nav-link i.bi {
        margin-right: 0;
        font-size: 1.25rem;
    }
    
    .sidebar-header h4 {
        display: none;
    }
    
    .logo-icon {
        margin: 0 auto;
    }
}

/* User Management Styles */
.table-hover tbody tr:hover {
    background-color: rgba(102, 205, 170, 0.1);
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.85em;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.btn-sm i.bi {
    font-size: 0.9rem;
}

/* Responsive Table */
@media (max-width: 768px) {
    .table-responsive {
        border: 0;
    }
    
    .table thead {
        display: none;
    }
    
    .table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
    }
    
    .table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid #dee2e6;
    }
    
    .table td:before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 1rem;
    }
    
    .table td:last-child {
        border-bottom: 0;
    }
    
    .table td .btn {
        padding: 0.25rem 0.5rem;
    }
}

/* Registration Form Styles */
.form-label.required:after {
    content: " *";
    color: #dc3545;
}

/* File upload preview */
#photo-preview {
    max-width: 150px;
    max-height: 150px;
    display: block;
    margin-top: 10px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

/* Responsive form adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem !important;
    }
    
    .form-control, .form-select {
        font-size: 0.9rem;
    }
}

/* Password strength indicator */
.password-strength {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}