/* Modern Design System */
:root {
    /* Primary Colors */
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #a5b4fc;
    
    /* Secondary Colors */
    --secondary: #764ba2;
    --secondary-dark: #6b46c1;
    --secondary-light: #c4b5fd;
    
    /* Status Colors */
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --danger: #ef4444;
    --danger-light: #f87171;
    --info: #3b82f6;
    --info-light: #60a5fa;
    
    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--gray-800);
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Modern Header Design */
.modern-header {
    background: white;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

.header-top {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-section {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 500;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.welcome-text {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 700;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Modern Navigation */
.modern-nav {
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-md);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--gray-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.modern-nav .nav-link.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
}

.modern-nav .nav-link.active::before {
    opacity: 1;
}

.nav-icon {
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

.nav-text {
    position: relative;
    z-index: 1;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h1 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.alert {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert.error {
    background-color: #fdecea;
    color: var(--danger);
    border: 1px solid #f5c6cb;
}

.alert.success {
    background-color: #e8f5e9;
    color: var(--success);
    border: 1px solid #c3e6cb;
}

/* Modern Container System */
.modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Modern Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.modern-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-description {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.logout-btn, .back-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.logout-btn:hover, .back-btn:hover {
    text-decoration: underline;
}

.admin-nav ul {
    display: flex;
    list-style: none;
    margin-bottom: 2rem;
}

.admin-nav li {
    margin-right: 1rem;
}

.admin-nav a {
    text-decoration: none;
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.admin-nav a.active {
    background-color: var(--primary);
    color: white;
}

.admin-nav a:hover:not(.active) {
    background-color: var(--light);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Modern Account Creation Page */
.account-creation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.search-section, .creation-form {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    padding: 2rem;
}

/* Modern Buttons */
.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.modern-btn.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.modern-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

.modern-btn.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.modern-btn.secondary:hover {
    background: var(--gray-200);
    color: var(--gray-800);
    text-decoration: none;
}

.btn-icon {
    font-size: 1rem;
}

.btn-text {
    font-weight: 600;
}

/* Modern Alerts */
.modern-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.modern-alert.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    color: #dc2626;
}

.modern-alert.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

/* Modern Input */
.modern-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    background: white;
    transition: all 0.3s ease;
    color: var(--gray-800);
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.modern-input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.search-box {
    display: flex;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-box button {
    padding: 0 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--light);
    font-weight: 600;
}

tr:hover {
    background-color: #f9f9f9;
}

.select-btn {
    background-color: var(--success);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.select-btn:hover {
    background-color: #27ae60;
}

.create-btn {
    width: 100%;
    margin-top: 1rem;
    background-color: var(--success);
}

.create-btn:hover {
    background-color: #27ae60;
}

small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .account-creation {
        grid-template-columns: 1fr;
    }
}

/* Saint Bernard Branding */
:root {
    --primary: #1a5276; /* Deep blue */
    --secondary: #d35400; /* Orange */
    --logo-blue: #2980b9;
    --logo-orange: #e67e22;
}

/* Header with Logo */
.brand-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    background: linear-gradient(135deg, var(--logo-blue) 50%, var(--logo-orange) 50%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.brand-title {
    font-size: 1.5rem;
    color: var(--primary);
}

.brand-subtitle {
    font-size: 0.9rem;
    color: var(--secondary);
    display: block;
}

/* Honeypot Trap Field */
.hp-field {
    position: absolute;
    left: -9999px;
}

/* Error message styling - completely hidden initially */
.error-message {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Show errors only after field is touched */
.form-group input.touched:invalid + .error-message {
    height: auto;
    opacity: 1;
    margin-top: 0.5rem;
}

/* Style invalid inputs only after interaction */
.form-group input.touched:invalid {
    border-color: var(--danger);
}

/* Remove all browser default validation styling */
input:invalid {
    box-shadow: none;
}

/* Alert message styling */
.alert {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: none;
}

.alert.error {
    background-color: #fdecea;
    color: var(--danger);
    border: 1px solid #f5c6cb;
}

.alert.show {
    display: block;
}

.loading, .no-results, .error {
    padding: 10px;
    text-align: center;
    color: #666;
}
.loading {
    color: #999;
    font-style: italic;
}
.error {
    color: #d9534f;
}

/* Add to your style.css */
.search-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

#clientSearch {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

#clientResults {
    position: absolute;
    top: 100%; /* Positions it right below the search box */
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.client-option {
    display: block;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    color: #333;
    text-decoration: none;
}

.client-option:hover {
    background-color: #f5f5f5;
}

.loading, .no-results, .error {
    padding: 10px;
    text-align: center;
    color: #666;
}
/* Enhanced status badges */
.badge {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.logo img {
  width: 80px;   /* adjust as needed */
}

.status-pending {
    background-color: #ffc107;
    color: #000;
}

.status-processing {
    background-color: #0dcaf0;
    color: #000;
}

.status-approved {
    background-color: #198754;
    color: #fff;
}

.status-rejected {
    background-color: #dc3545;
    color: #fff;
}

.status-completed {
    background-color: #6c757d;
    color: #fff;
}

.status-cancelled {
    background-color: #f30707;
    color: #fff;
}

/* Table styling */
#applicationsTable {
    font-size: 0.9rem;
}

#applicationsTable th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Modal styling */
.modal-header {
    padding: 1rem 1.5rem;
}

.modal-body .form-label {
    font-weight: 500;
    color: #495057;
}

.modal-body .form-control-static {
    padding: 0.375rem 0;
    margin-bottom: 0;
    line-height: 1.5;
    border-bottom: 1px solid #dee2e6;
}

/* Hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Modern Section Headers */
.section-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

/* Modern Users Management Section */
.users-section {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
}

/* Modern Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: 350px;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-container::before {
    content: "🔍";
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    z-index: 1;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: -2px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-info {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.users-section h2 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Modern Table Design */
.users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    background: white;
    table-layout: auto;
}

.users-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-weight: 700;
    color: #334155;
    padding: 0.625rem 0.75rem;
    text-align: left;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.users-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.users-table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.users-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.users-table tbody tr:hover td {
    color: #1e293b;
}

/* Modern Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status-badge.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.status-badge.inactive {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.status-badge.locked {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Modern Edit Button */
.btn-edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.btn-edit:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

/* Modern Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.close {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    background: #f8fafc;
}

.modal-footer {
    padding: 1.5rem 2rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(100, 116, 139, 0.4);
}

/* Modern Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #374151;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    background: white;
    transition: all 0.3s ease;
    color: #374151;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Modern Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-buttons button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.pagination-buttons button:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.pagination-buttons button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-btn {
    background: white;
    color: #475569;
    border: 2px solid #e2e8f0;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    min-width: 40px;
}

.page-btn:hover {
    background: #f8fafc;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-size {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.pagination-size label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.pagination-size select {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    background: white;
    color: #475569;
    transition: all 0.3s ease;
}

.pagination-size select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Modern Success Modal */
.success-icon {
    text-align: center;
    margin-bottom: 2rem;
}

.success-checkmark {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    font-size: 2.5rem;
    line-height: 80px;
    font-weight: bold;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.temp-password-container {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 3px solid #0ea5e9;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.temp-password-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #3b82f6, #8b5cf6);
}

.temp-password-header {
    font-size: 1.2rem;
    color: #0c4a6e;
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.temp-password-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.password-display {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #0c4a6e;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 3px solid #0ea5e9;
    letter-spacing: 4px;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.2);
    position: relative;
    overflow: hidden;
}

.password-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.copy-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.password-instructions {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 6px solid #f59e0b;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.password-instructions::before {
    content: '💡';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.password-instructions h5 {
    color: #92400e;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.password-instructions ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #92400e;
}

.password-instructions li {
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.6;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

.users-table .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: auto;
}

/* Ensure Actions column has enough space */
.users-table th:last-child,
.users-table td:last-child {
    padding-right: 1rem;
    min-width: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem auto;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .table-responsive {
        border: 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .users-table {
        font-size: 0.8rem;
    }
    
    .users-table th,
    .users-table td {
        padding: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        min-width: auto;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-buttons {
        justify-content: center;
    }
    
    .temp-password-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .password-display {
        font-size: 1.5rem;
        padding: 1rem 1.5rem;
        letter-spacing: 2px;
    }
    
    .copy-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .temp-password-container {
        padding: 1.5rem;
    }
    
    /* Mobile Header */
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .user-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .nav-link {
        justify-content: center;
        padding: 1rem;
    }
    
    .modern-container {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .account-creation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modern-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Login Page Styles */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-wrapper {
    width: 100%;
    max-width: 350px;
    animation: fadeIn 0.6s ease-out;
}

.login-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header {
    background: #ffffff;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
}

.login-content {
    padding: 1.25rem;
}

.login-form-container {
    width: 100%;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.label-icon {
    color: #667eea;
    font-size: 0.875rem;
}

.modern-input {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modern-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.modern-input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.error-message {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 500;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.modern-input:invalid.touched + .error-message {
    opacity: 1;
    transform: translateY(0);
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Honeypot field - hidden */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.hp-field label,
.hp-field input {
    display: none;
}

/* Login Page Mobile Responsive */
@media (max-width: 768px) {
    .login-wrapper {
        max-width: 100%;
        margin: 0;
    }
    
    .login-container {
        border-radius: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .login-header {
        padding: 1.5rem;
    }
    
    .login-content {
        padding: 1.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}