/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
}

/* Sidebar Styles */
.sidebar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    min-height: 100vh;
    color: #ecf0f1;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar .nav-link {
    color: #bdc3c7;
    padding: 12px 20px;
    margin: 2px 0;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-left: 3px solid #3498db;
}

.sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-left: 3px solid #3498db;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.user-info {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.user-info p {
    margin: 0;
    font-size: 1.1rem;
}

.user-info small {
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* Main Content Styles */
.main-content {
    padding: 20px;
    background-color: #fff;
    min-height: 100vh;
}

.welcome-message {
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Card Styles */
.card {
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.card-header {
    background-color: #3498db;
    color: white;
    border-radius: 8px 8px 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
}

/* Form Styles */
.form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    margin-bottom: 10px;
}

.btn {
    transition: all 0.3s;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Alert Messages */
.alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Loading Indicators */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.2em;
}

/* Table Styles */
.table {
    background-color: white;
}

.table th {
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Update sidebar background */
.sidebar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    min-height: 100vh;
    color: #ecf0f1;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: fixed; /* Add this for proper layout */
    width: 250px; /* Fixed width */
}

/* Ensure main content doesn't hide behind sidebar */
.main-content {
    margin-left: 250px; /* Same as sidebar width */
    width: calc(100% - 250px);
    padding: 20px;
}
}
/* User Management Styles */
#user-management-content {
    min-height: 300px;
}

.user-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Role badges */
.badge-admin {
    background-color: #3498db;
}
.badge-manager {
    background-color: #2ecc71;
}
.badge-attendant {
    background-color: #f39c12;
}