/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 25%, #1e40af 50%, #1d4ed8 75%, #2563eb 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* Aviation-themed background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    background-size: 800px 800px, 600px 600px, 1000px 1000px;
    background-position: 0 0, 100% 100%, 50% 50%;
    animation: float 25s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Subtle aircraft silhouettes */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 20 L60 40 L80 35 L85 45 L60 50 L85 55 L80 65 L60 60 L50 80 L40 60 L20 65 L15 55 L40 50 L15 45 L20 35 L40 40 Z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    background-position: 10% 20%, 80% 70%, 30% 80%;
    background-repeat: no-repeat;
    animation: drift 30s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(0.5deg); }
    66% { transform: translateY(-8px) rotate(-0.5deg); }
}

@keyframes drift {
    0% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(-10px); }
}

/* CSS Custom Properties for Theming */
:root {
    /* Colors */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --info-color: #0891b2;
    
    /* Neutral Colors */
    --white: #ffffff;
    --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;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-base: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Layout */
    --container-max-width: 1200px;
    --header-height: 4rem;
    --footer-height: 3rem;
}

/* Base Styles */
body {
    background-color: var(--gray-50);
    color: var(--gray-900);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

/* Layout Components */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

.header {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 2;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    background-size: 400px 400px, 600px 600px;
    animation: headerFloat 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes headerFloat {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(20px); }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.aviation-icon {
    width: 28px;
    height: 28px;
    color: var(--white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.025em;
}

.logo-subtitle {
    font-size: var(--font-size-sm);
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: #ffffff;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

/* Header navigation styling for dark background */
.header .nav select,
.header .nav .form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.header .nav select:focus,
.header .nav .form-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
}

.header .nav select option {
    background: var(--gray-800);
    color: var(--white);
}

/* Header button styling */
.header .btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.main {
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    padding: var(--spacing-8) 0;
    position: relative;
}

/* Glass morphism effect for main content cards */
.auth-section,
.dashboard,
.form-container,
.registration-list,
.search-interface,
.consent-management,
.user-management,
.zone-management,
.audit-trail,
.system-settings,
.amend-registration-form,
.discharge-registration-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow for content areas */
.auth-section::before,
.dashboard::before,
.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.footer {
    background-color: var(--gray-800);
    color: var(--gray-300);
    height: var(--footer-height);
    display: flex;
    align-items: center;
}

.footer p {
    font-size: var(--font-size-sm);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Form Elements */
.form-group {
    margin-bottom: var(--spacing-4);
}

.form-label {
    display: block;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-2);
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: var(--spacing-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.form-error {
    color: var(--error-color);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-1);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3) var(--spacing-4);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-700);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-3);
    }
    
    .header .container {
        flex-direction: column;
        height: auto;
        padding: var(--spacing-3);
    }
    
    .nav {
        margin-top: var(--spacing-2);
    }
    
    .main {
        padding: var(--spacing-4) 0;
    }
}

/* Authentication Styles */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: var(--spacing-8);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.login-form h2 {
    text-align: center;
    margin-bottom: var(--spacing-6);
    color: #ffffff;
}

.form-help {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
}

.login-info {
    margin-top: var(--spacing-6);
    padding: var(--spacing-4);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--info-color);
}

.login-info h3 {
    margin-bottom: var(--spacing-3);
    color: var(--info-color);
    font-size: var(--font-size-lg);
}

.login-info ul {
    margin: var(--spacing-3) 0;
    padding-left: var(--spacing-5);
}

.login-info li {
    margin-bottom: var(--spacing-2);
}

/* Loading state */
.loading {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* User info styles */
.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.user-info span {
    font-size: var(--font-size-sm);
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* Dashboard styles */
.dashboard {
    padding: var(--spacing-8);
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard h2 {
    text-align: center;
    margin-bottom: var(--spacing-4);
    color: var(--primary-color) !important;
}

.dashboard > p {
    text-align: center;
    margin-bottom: var(--spacing-6);
    color: var(--gray-600);
}

.role-info {
    background: var(--gray-50);
    padding: var(--spacing-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-6);
    border-left: 4px solid var(--primary-color);
}

.role-info h3 {
    margin-bottom: var(--spacing-2);
    color: #000000 !important;
}

.role-info p {
    color: var(--gray-600);
    margin: 0;
}

.dashboard-actions h3 {
    margin-bottom: var(--spacing-4);
    color: var(--gray-800);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-4);
}

.action-card {
    background: var(--white);
    padding: var(--spacing-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-base);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.action-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.action-card h4 {
    margin-bottom: var(--spacing-3);
    color: var(--gray-800);
    font-size: var(--font-size-lg);
}

.action-card p {
    margin-bottom: var(--spacing-4);
    color: var(--gray-600);
    line-height: var(--line-height-relaxed);
}

.action-card .btn {
    width: 100%;
}

/* Registry info styles */
.registry-info {
    max-width: 800px;
    margin: 20px auto;
    padding: var(--spacing-8);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.registry-info h2 {
    color: #ffffff;
    margin-bottom: var(--spacing-4);
    text-align: center;
}

.registry-info h3 {
    color: var(--gray-800);
    margin: var(--spacing-6) 0 var(--spacing-3) 0;
    font-weight: 600;
}

.registry-info p {
    color: var(--gray-800);
    line-height: 1.6;
    margin-bottom: var(--spacing-4);
}

.registry-info ul {
    margin: var(--spacing-3) 0;
    padding-left: var(--spacing-5);
    color: var(--gray-800);
}

.registry-info li {
    margin-bottom: var(--spacing-2);
    line-height: var(--line-height-relaxed);
    color: var(--gray-800);
}

.registry-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Registration Form Styles */
.registration-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-6);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-6);
    padding-bottom: var(--spacing-4);
    border-bottom: 2px solid var(--gray-200);
}

.form-header h2 {
    color: #ffffff;
    margin: 0;
}

.registration-form {
    background: var(--white);
    padding: var(--spacing-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-base);
}

.form-section {
    margin-bottom: var(--spacing-8);
    padding-bottom: var(--spacing-6);
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: var(--spacing-6);
}

.form-section h3 {
    color: var(--gray-800);
    margin-bottom: var(--spacing-4);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4);
}

.form-group {
    margin-bottom: var(--spacing-4);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-input {
    width: 100%;
    padding: var(--spacing-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.form-input.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgb(220 38 38 / 0.1);
}

.form-input[type="textarea"],
textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-2);
}

.checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    line-height: var(--line-height-relaxed);
}

.consent-section {
    background: var(--gray-50);
    padding: var(--spacing-5);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--warning-color);
}

.consent-notice {
    background: var(--warning-color);
    color: var(--white);
    padding: var(--spacing-3);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-4);
}

.consent-notice p {
    margin: 0;
    font-weight: var(--font-weight-medium);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-3);
    padding-top: var(--spacing-4);
    border-top: 1px solid var(--gray-200);
}

.form-error {
    color: var(--error-color);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-1);
    display: block;
}

.form-help {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-1);
    display: block;
}

/* Responsive form styles */
@media (max-width: 768px) {
    .registration-form-container {
        padding: var(--spacing-4);
    }
    
    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-3);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Registration Details Styles */
.registration-details {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-6);
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-6);
    padding-bottom: var(--spacing-4);
    border-bottom: 2px solid var(--gray-200);
}

.details-header h2 {
    color: #ffffff;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: var(--spacing-3);
}

.registration-card {
    background: var(--white);
    padding: var(--spacing-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-base);
}

.registration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-6);
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid var(--gray-200);
}

.registration-header h3 {
    color: var(--gray-800);
    margin: 0;
}

.status-badge {
    padding: var(--spacing-1) var(--spacing-3);
    border-radius: var(--radius-base);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.status-active {
    background: var(--success-color);
    color: var(--white);
}

.status-discharged {
    background: var(--gray-500);
    color: var(--white);
}

.status-draft {
    background: var(--warning-color);
    color: var(--white);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-6);
}

.detail-section {
    padding: var(--spacing-4);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--gray-50);
}

.detail-section h4 {
    color: #000000;
    margin-bottom: var(--spacing-3);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.detail-section p {
    margin-bottom: var(--spacing-2);
    line-height: var(--line-height-relaxed);
}

.detail-section p:last-child {
    margin-bottom: 0;
}

.amendments-section {
    margin-top: var(--spacing-6);
    padding-top: var(--spacing-4);
    border-top: 1px solid var(--gray-200);
}

.amendments-section h4 {
    color: var(--gray-800);
    margin-bottom: var(--spacing-4);
}

.amendments-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.amendment-item {
    padding: var(--spacing-3);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--info-color);
}

.amendment-item p {
    margin-bottom: var(--spacing-1);
    font-size: var(--font-size-sm);
}

.amendment-item p:last-child {
    margin-bottom: 0;
}

.amendment-changes {
    margin-top: var(--spacing-3);
    padding-top: var(--spacing-3);
    border-top: 1px solid var(--gray-200);
}

.amendment-changes p {
    margin-bottom: var(--spacing-2);
    font-weight: var(--font-weight-semibold);
}

.amendment-changes ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.amendment-changes li {
    padding: var(--spacing-1) 0;
    font-size: var(--font-size-sm);
    color: var(--gray-700);
}

.amendment-changes li strong {
    color: var(--gray-900);
    margin-right: var(--spacing-1);
}

/* Responsive details styles */
@media (max-width: 768px) {
    .registration-details {
        padding: var(--spacing-4);
    }
    
    .details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-3);
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .registration-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-2);
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Registration List Styles */
.registration-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-6);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-6);
    padding-bottom: var(--spacing-4);
    border-bottom: 2px solid var(--gray-200);
}

.list-header h2 {
    color: var(--primary-color) !important;
    margin: 0;
}

.list-filters {
    background: var(--gray-50);
    padding: var(--spacing-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-6);
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-3);
}

.registration-table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-base);
    overflow-x: auto;
}

.registration-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}

/* Table container with horizontal scroll */
.registration-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.registration-table th {
    background: var(--gray-100);
    padding: var(--spacing-3);
    text-align: left;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.registration-table td {
    padding: var(--spacing-3);
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

/* Actions column specific styling */
.registration-table th:last-child,
.registration-table td:last-child {
    width: 200px;
    min-width: 200px;
    white-space: nowrap;
}

.registration-table td:last-child {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
}

.registration-table tbody tr:hover {
    background: var(--gray-50);
}

.registration-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.registration-link:hover {
    text-decoration: underline;
}

.actions-cell {
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: var(--spacing-2);
}

.btn-small {
    padding: var(--spacing-1) var(--spacing-2);
    font-size: var(--font-size-sm);
    border: none;
    border-radius: var(--radius-base);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-small.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-small.btn-secondary {
    background: var(--gray-500);
    color: var(--white);
}

.btn-small.btn-warning {
    background: var(--warning-color);
    color: var(--white);
}

.btn-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    padding: var(--spacing-8);
    color: var(--gray-500);
}

.empty-row {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
}

/* Amendment and Discharge Form Styles */
.amendment-form-container,
.discharge-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-6);
}

.registration-summary {
    background: var(--gray-50);
    padding: var(--spacing-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-6);
    border-left: 4px solid var(--info-color);
}

.registration-summary h3 {
    color: var(--info-color);
    margin-bottom: var(--spacing-3);
}

.registration-summary p {
    margin-bottom: var(--spacing-2);
}



/* Responsive list styles */
@media (max-width: 768px) {
    .registration-list {
        padding: var(--spacing-4);
    }
    
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-3);
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .registration-table-container {
        font-size: var(--font-size-sm);
    }
    
    .registration-table th,
    .registration-table td {
        padding: var(--spacing-2);
    }
    
    /* Mobile actions column */
    .registration-table th:last-child,
    .registration-table td:last-child {
        width: 160px;
        min-width: 160px;
    }
    
    .registration-table td:last-child {
        flex-direction: column;
        gap: 2px;
        align-items: stretch;
    }
    
    .registration-table .btn-sm {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .amendment-form-container,
    .discharge-form-container {
        padding: var(--spacing-4);
    }
}

/* Search Interface Styles */
.search-interface {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-6);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-6);
    padding-bottom: var(--spacing-4);
    border-bottom: 2px solid var(--gray-200);
}

.search-header h2 {
    color: var(--primary-color);
    margin: 0;
}

.search-form-container {
    background: var(--white);
    padding: var(--spacing-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-base);
    margin-bottom: var(--spacing-6);
}

.search-section {
    margin-bottom: var(--spacing-6);
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid var(--gray-200);
}

.search-section:last-of-type {
    border-bottom: none;
    margin-bottom: var(--spacing-4);
}

.search-section h3 {
    color: #000000;
    margin-bottom: var(--spacing-3);
    font-size: var(--font-size-lg);
}

.search-help {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-4);
}

.search-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-3);
    padding-top: var(--spacing-4);
    border-top: 1px solid var(--gray-200);
}

.search-results {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-base);
}

.results-header {
    padding: var(--spacing-4) var(--spacing-6);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h3 {
    color: var(--gray-800);
    margin: 0;
}

.results-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

.results-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.results-container {
    padding: var(--spacing-4);
}

.loading-message,
.error-message {
    text-align: center;
    padding: var(--spacing-8);
    color: var(--gray-600);
}

.error-message {
    color: var(--error-color);
}

.no-results {
    text-align: center;
    padding: var(--spacing-8);
    color: var(--gray-600);
}

.no-results h4 {
    color: var(--gray-700);
    margin-bottom: var(--spacing-3);
}

.result-card {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: var(--radius-md);
    padding: var(--spacing-5);
    margin-bottom: var(--spacing-5);
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.result-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-3);
    padding-bottom: var(--spacing-2);
    border-bottom: 1px solid var(--gray-300);
}

.result-header h4 {
    margin: 0;
}

.result-details {
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    gap: var(--spacing-4);
    align-items: start;
}

/* Vertical dividers */
.result-details .divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(148, 163, 184, 0.8), transparent);
    height: 100%;
    min-height: 120px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-2);
    margin-bottom: var(--spacing-2);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    border: 1px solid rgba(226, 232, 240, 0.3);
}

.detail-label {
    font-weight: var(--font-weight-medium);
    color: var(--gray-600);
    min-width: 120px;
    margin-right: var(--spacing-3);
}

.detail-value {
    color: var(--gray-800);
    text-align: right;
    flex: 1;
    font-weight: 500;
}

/* Pagination Styles */
.pagination {
    padding: var(--spacing-4) var(--spacing-6);
    border-top: 1px solid var(--gray-200);
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.page-btn {
    padding: var(--spacing-2) var(--spacing-3);
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius-base);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.page-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.page-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-ellipsis {
    color: var(--gray-500);
    padding: 0 var(--spacing-2);
}

/* Responsive search styles */
@media (max-width: 768px) {
    .search-interface {
        padding: var(--spacing-4);
    }
    
    .search-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-3);
    }
    
    .search-form-container {
        padding: var(--spacing-4);
    }
    
    .search-actions {
        flex-direction: column;
    }
    
    .search-actions .btn {
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-3);
    }
    
    .results-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .results-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-1);
    }
    
    .detail-value {
        text-align: left;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: var(--spacing-3);
    }
    
    .page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Search Statistics Styles */
.search-statistics {
    margin-top: var(--spacing-4);
    padding: var(--spacing-4);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--info-color);
}

.statistics-content h4 {
    color: var(--info-color);
    margin-bottom: var(--spacing-3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-4);
}

.stat-section {
    background: var(--white);
    padding: var(--spacing-3);
    border-radius: var(--radius-base);
    border: 1px solid var(--gray-200);
}

.stat-section h5 {
    color: var(--gray-700);
    margin-bottom: var(--spacing-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-1) 0;
    border-bottom: 1px solid var(--gray-100);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.stat-value {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--gray-800);
}

/* Enhanced result cards */
.result-card {
    transition: all var(--transition-fast);
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Loading and error states */
.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-8);
    color: var(--gray-600);
}

.loading-message::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: var(--spacing-3);
}

.error-message {
    text-align: center;
    padding: var(--spacing-8);
    color: var(--error-color);
    background: var(--white);
    border: 1px solid var(--error-color);
    border-radius: var(--radius-md);
}

/* Admin Interface Styles */
.admin-interface {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-6);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-6);
    padding-bottom: var(--spacing-4);
    border-bottom: 2px solid var(--gray-200);
}

.admin-header h2 {
    color: #ffffff;
    margin: 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-6);
}

.stat-card {
    background: var(--white);
    padding: var(--spacing-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-base);
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.stat-card h3 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: #000000 !important;
    margin-bottom: var(--spacing-2);
}

.stat-card p {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin: 0;
}

.admin-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-base);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--gray-100);
    padding: var(--spacing-3);
    text-align: left;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.admin-table td {
    padding: var(--spacing-3);
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: var(--gray-50);
}

.user-row.inactive {
    opacity: 0.6;
}

.role-badge {
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-base);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
}

.role-admin {
    background: var(--error-color);
    color: var(--white);
}

.role-creditor {
    background: var(--primary-color);
    color: var(--white);
}

.role-debtor {
    background: var(--warning-color);
    color: var(--white);
}

.role-public {
    background: var(--gray-500);
    color: var(--white);
}

.btn-danger {
    background: var(--error-color);
    color: var(--white);
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Settings Styles */
.settings-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-6);
}

.settings-section {
    background: var(--white);
    padding: var(--spacing-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-base);
}

.settings-section h3 {
    color: var(--gray-800);
    margin-bottom: var(--spacing-4);
    font-size: var(--font-size-lg);
}

.storage-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.storage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-2);
    border-bottom: 1px solid var(--gray-200);
}

.storage-item.total {
    font-weight: var(--font-weight-semibold);
    border-top: 2px solid var(--primary-color);
    background: var(--gray-50);
}

.storage-label {
    color: var(--gray-600);
}

.storage-value {
    color: var(--gray-800);
    font-weight: var(--font-weight-medium);
}

.data-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-3);
}

.system-status {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-2);
}

.status-label {
    color: var(--gray-600);
}

.status-success {
    color: var(--success-color);
    font-weight: var(--font-weight-medium);
}

.status-error {
    color: var(--error-color);
    font-weight: var(--font-weight-medium);
}

/* Audit Trail Styles */
.audit-filters {
    background: var(--gray-50);
    padding: var(--spacing-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-6);
}

.audit-row.failed {
    background: rgba(220, 38, 38, 0.05);
}

.timestamp-cell {
    font-size: var(--font-size-sm);
}

.action-badge {
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-base);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
}

.action-login {
    background: var(--success-color);
    color: var(--white);
}

.action-logout {
    background: var(--gray-500);
    color: var(--white);
}

.action-create {
    background: var(--primary-color);
    color: var(--white);
}

.action-update {
    background: var(--warning-color);
    color: var(--white);
}

.action-delete {
    background: var(--error-color);
    color: var(--white);
}

.action-search {
    background: var(--info-color);
    color: var(--white);
}

.details-cell {
    max-width: 200px;
}

.audit-details {
    background: var(--gray-100);
    padding: var(--spacing-2);
    border-radius: var(--radius-base);
    font-family: monospace;
    font-size: var(--font-size-xs);
    white-space: pre-wrap;
    margin-top: var(--spacing-2);
}

.error-text {
    color: var(--error-color);
    font-size: var(--font-size-sm);
}

.audit-note {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    margin-top: var(--spacing-4);
}

/* Responsive admin styles */
@media (max-width: 768px) {
    .admin-interface {
        padding: var(--spacing-4);
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-3);
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .settings-container {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: var(--font-size-sm);
    }
    
    .admin-table th,
    .admin-table td {
        padding: var(--spacing-2);
    }
    
    .action-buttons {
        flex-direction: column;
        gap: var(--spacing-1);
    }
    
    .data-actions {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav {
        display: none;
    }
    
    .main {
        min-height: auto;
        padding: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}/* Co
nsent Management Styles */
.consent-management {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.consent-info {
    margin-bottom: 30px;
}

.info-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.consent-table {
    margin-bottom: 30px;
}

.consent-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.consent-table th,
.consent-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.consent-table th {
    background: var(--background-light);
    font-weight: 600;
    color: var(--text-dark);
}

.consent-table tr:hover {
    background: var(--background-light);
}

.consent-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.consent-granted {
    background: var(--success-light);
    color: var(--success-color);
}

.consent-pending {
    background: var(--warning-light);
    color: var(--warning-color);
}

.consent-denied {
    background: var(--error-light);
    color: var(--error-color);
}

.consent-history {
    background: var(--background-light);
    border-radius: 8px;
    padding: 20px;
}

.consent-history h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.history-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.history-info p {
    margin: 0;
    flex: 1;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.history-table {
    margin-top: 20px;
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.history-table th,
.history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.history-table th {
    background: var(--background-light);
    font-weight: 600;
    color: var(--text-dark);
}

.consent-action {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.consent-grant {
    background: var(--success-light);
    color: var(--success-color);
}

.consent-deny {
    background: var(--error-light);
    color: var(--error-color);
}

.consent-revoke {
    background: var(--warning-light);
    color: var(--warning-color);
}

/* Responsive design for consent management */
@media (max-width: 768px) {
    .consent-header,
    .history-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .history-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .consent-table,
    .history-table {
        overflow-x: auto;
    }
    
    .consent-table table,
    .history-table table {
        min-width: 600px;
    }
}/* Amen
dment and Discharge Form Styles */
.amend-registration-form,
.discharge-registration-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
}

.registration-info {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.registration-info h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.info-grid div {
    padding: 5px 0;
}

.discharge-warning {
    background: var(--warning-light);
    border: 1px solid var(--warning-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.discharge-warning h3 {
    color: var(--warning-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.discharge-warning p {
    margin: 0;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

.form-section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.form-section h3 {
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive design for amendment/discharge forms */
@media (max-width: 768px) {
    .amend-registration-form,
    .discharge-registration-form {
        padding: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 15px;
    }
}/* M
odel Law Compliance Styles */
.consent-final {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-600);
    font-style: italic;
}

.consent-notice {
    background: rgba(224, 242, 254, 0.9);
    border: 1px solid var(--info-color, #0891b2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    color: var(--gray-800);
    backdrop-filter: blur(5px);
}

.consent-notice p {
    margin-bottom: 8px;
    color: var(--gray-800);
    font-weight: 500;
    line-height: 1.5;
}

.consent-notice p:last-child {
    margin-bottom: 0;
}

.consent-notice strong {
    color: var(--info-color, #0891b2);
    font-weight: 600;
}



/* Regis
tration table action buttons */
.registration-table .btn-sm {
    font-size: 0.75rem;
    padding: 6px 10px;
    min-width: 60px;
    text-align: center;
}

/* Ensure buttons don't wrap text */
.registration-table .btn-sm {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Desktop: horizontal layout */
@media (min-width: 769px) {
    .registration-table td:last-child {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* Tablet and mobile: vertical layout */
@media (max-width: 768px) {
    .registration-table td:last-child {
        flex-direction: column;
        align-items: stretch;
    }
    
    .registration-table .btn-sm {
        margin-bottom: 2px;
        width: 100%;
    }
    
    .registration-table .btn-sm:last-child {
        margin-bottom: 0;
    }
}/* Det
ail column styling for 3-column layout */
.detail-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

/* Responsive adjustments for search results */
@media (max-width: 768px) {
    .result-details {
        grid-template-columns: 1fr;
        gap: var(--spacing-3);
    }
    
    .result-details .divider {
        display: none;
    }
    
    .detail-column {
        border-bottom: 1px solid rgba(226, 232, 240, 0.3);
        padding-bottom: var(--spacing-2);
        margin-bottom: var(--spacing-2);
    }
    
    .detail-column:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}/*
 Search form header with toggle */
.search-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-4);
    padding-bottom: var(--spacing-2);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.search-form-header h3 {
    margin: 0;
    color: #000000;
}

/* Toggle button styling */
#toggle-search-form {
    font-size: var(--font-size-sm);
    padding: var(--spacing-1) var(--spacing-3);
}

/* Smooth transition for form collapse */
.search-form {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}/* Aut
hentication Container */
.auth-container {
    max-width: 450px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Authentication Tabs */
.auth-tabs {
    display: flex;
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.auth-tab {
    flex: 1;
    padding: var(--spacing-3) var(--spacing-4);
    background: none;
    border: none;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-tab:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-color);
}

.auth-tab.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Authentication Forms */
.auth-form {
    display: none;
    padding: var(--spacing-6);
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: var(--spacing-6);
    color: #ffffff;
}

/* Demo Accounts */
.demo-accounts {
    margin-top: var(--spacing-6);
    padding: var(--spacing-4);
    background: rgba(248, 250, 252, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.3);
}

.demo-accounts h4 {
    margin-bottom: var(--spacing-3);
    color: #ffffff;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-account-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.demo-account {
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-2);
    border-radius: 4px;
}

/* Responsive design for auth */
@media (max-width: 768px) {
    .auth-container {
        margin: var(--spacing-4);
        max-width: none;
    }
    
    .auth-form {
        padding: var(--spacing-4);
    }
    
    .auth-tab {
        padding: var(--spacing-2) var(--spacing-3);
        font-size: var(--font-size-sm);
    }
}

/* Audit Trail Specific Styling */
.audit-table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: var(--spacing-6);
}

.audit-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: var(--spacing-6);
    margin: var(--spacing-4) 0;
}

/* Ensure audit table has proper white background */
.audit-trail .admin-table {
    background: var(--white);
}

.audit-trail .admin-table thead th {
    background: var(--gray-50);
    color: var(--gray-800);
    font-weight: 600;
    border-bottom: 2px solid var(--gray-200);
}

.audit-trail .admin-table tbody tr {
    background: var(--white);
}

.audit-trail .admin-table tbody tr:nth-child(even) {
    background: var(--gray-25, #fafafa);
}

.audit-trail .admin-table tbody tr:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.audit-trail .admin-table td {
    background: inherit;
    vertical-align: middle;
}

/* Audit entry styling */
.audit-entry {
    background: var(--white);
    border-radius: 6px;
    padding: var(--spacing-2);
    margin: var(--spacing-1) 0;
}

/* Responsive audit table */
@media (max-width: 768px) {
    .audit-table-container {
        margin: var(--spacing-3) 0;
        border-radius: 8px;
    }
    
    .audit-content {
        padding: var(--spacing-4);
        margin: var(--spacing-2) 0;
    }
}/* Re
gistration form specific consent notice */
.registration-notice {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid var(--info-color, #0891b2) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
    color: var(--gray-900) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.1);
}

.registration-notice p {
    margin-bottom: 12px !important;
    color: var(--gray-900) !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    font-size: var(--font-size-base);
}

.registration-notice p:last-child {
    margin-bottom: 0 !important;
}

.registration-notice strong {
    color: var(--info-color, #0891b2) !important;
    font-weight: 700 !important;
}

/* Ensure good contrast in all contexts */
.form-section .registration-notice {
    background: var(--white) !important;
    color: var(--gray-900) !important;
}/* Registr
y info inner glow effect */
.registry-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

/* Registry info button styling */
.registry-info .btn {
    margin-top: var(--spacing-6);
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}/* Ass
ignment and Subordination Form Styles */
.assignment-form,
.subordination-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.assignment-form .form-header,
.subordination-form .form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.assignment-form .form-header h2,
.subordination-form .form-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.8rem;
}

.assignment-form .registration-info,
.subordination-form .registration-info {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.assignment-form .registration-info h3,
.subordination-form .registration-info h3 {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.assignment-form .info-grid,
.subordination-form .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.assignment-form .info-grid div,
.subordination-form .info-grid div {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.assignment-form .info-grid strong,
.subordination-form .info-grid strong {
    color: #ffffff;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Button styling for new actions */
.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-1px);
}

/* Responsive adjustments for assignment/subordination forms */
@media (max-width: 768px) {
    .assignment-form,
    .subordination-form {
        padding: 15px;
    }
    
    .assignment-form .form-header,
    .subordination-form .form-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .assignment-form .info-grid,
    .subordination-form .info-grid {
        grid-template-columns: 1fr;
    }
}/* Zon
e Information Display */
.zone-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.zone-info p {
    margin: 5px 0;
    color: #374151;
    font-size: 0.9rem;
}

.zone-info strong {
    color: #1f2937;
    font-weight: 600;
}/* Ch
/* Debtor Consent Confirmation Styles */
.consent-section {
    background: rgba(255, 248, 220, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.consent-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.regulation-text {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.regulation-text h4 {
    color: #1f2937;
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
}

.regulation-text p {
    color: #374151;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
}

.consent-confirmation {
    margin-top: 15px;
}

.consent-confirmation .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #dc2626;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
    font-weight: 500;
}

.consent-confirmation input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.consent-confirmation .checkbox-label:hover {
    color: #b91c1c;
}

/* Required field styling for consent */
.consent-confirmation input[type="checkbox"]:invalid {
    border: 2px solid #ef4444;
}

.consent-confirmation input[type="checkbox"]:valid {
    border: 2px solid #10b981;
}/* Ed
it Zone Form Styles */
.edit-zone-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.edit-zone-form .form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.edit-zone-form .form-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.8rem;
}

.edit-zone-form .form-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.edit-zone-form .form-section h3 {
    color: #000000;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

.edit-zone-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.edit-zone-form .form-group {
    display: flex;
    flex-direction: column;
}

.edit-zone-form .form-label {
    color: #000000;
    margin-bottom: 8px;
    font-weight: 500;
}

.edit-zone-form .form-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 12px;
    color: #000000;
    font-size: 0.9rem;
}

.edit-zone-form .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.edit-zone-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000000;
    font-size: 0.9rem;
    margin-bottom: 15px;
    cursor: pointer;
}

.edit-zone-form .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.edit-zone-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments for edit zone form */
@media (max-width: 768px) {
    .edit-zone-form {
        padding: 15px;
    }
    
    .edit-zone-form .form-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .edit-zone-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .edit-zone-form .form-actions {
        flex-direction: column;
    }
}/
* Entity Search Modal Styles */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
    animation: fadeIn 0.2s ease-out;
}

.modal-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(248, 250, 252, 0.8);
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.search-section {
    margin-bottom: 20px;
}

.search-section .form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
}

.search-section .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.entity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.entity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.2s;
}

.entity-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.entity-main {
    flex: 1;
}

.entity-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 4px;
}

.entity-details {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #6b7280;
}

.entity-fullname,
.entity-email {
    display: flex;
    align-items: center;
}

.entity-fullname::before {
    content: "👤 ";
    margin-right: 4px;
}

.entity-email::before {
    content: "✉️ ";
    margin-right: 4px;
}

.select-entity-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(248, 250, 252, 0.8);
    display: flex;
    justify-content: flex-end;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px 20px;
    }
    
    .entity-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .entity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .select-entity-btn {
        align-self: flex-end;
    }
}

/* Entity Search Interface (Inline/Accordion Style) */
.entity-search-interface {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    margin-top: var(--spacing-4);
    padding: var(--spacing-4);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
    animation: slideDown 0.3s ease-out;
}

.entity-search-interface .search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-4);
    padding-bottom: var(--spacing-3);
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

.entity-search-interface .search-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.entity-search-interface .search-section {
    margin-bottom: var(--spacing-4);
}

.entity-search-interface .entity-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
}

.entity-search-interface .entity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-3);
    border-bottom: 1px solid var(--gray-100);
    transition: background-color var(--transition-fast);
}

.entity-search-interface .entity-item:last-child {
    border-bottom: none;
}

.entity-search-interface .entity-item:hover {
    background: var(--gray-50);
}

.entity-search-interface .entity-main {
    flex: 1;
}

.entity-search-interface .entity-name {
    font-weight: var(--font-weight-semibold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-1);
}

.entity-search-interface .entity-details {
    display: flex;
    gap: var(--spacing-3);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.entity-search-interface .empty-state {
    text-align: center;
    padding: var(--spacing-6);
    color: var(--gray-500);
    font-style: italic;
}

/* Animation for sliding down */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .entity-search-interface .search-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-2);
    }
    
    .entity-search-interface .entity-details {
        flex-direction: column;
        gap: var(--spacing-1);
    }
    
    .entity-search-interface .entity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-2);
    }
    
    .entity-search-interface .select-entity-btn {
        align-self: stretch;
    }
}/*
 Force correct colors for dashboard and role elements - Override any conflicts */
.dashboard .dashboard h2,
div.dashboard h2 {
    color: var(--primary-color) !important;
}

.role-info .role-info h3,
div.role-info h3 {
    color: #000000 !important;
}

.stat-card .stat-card h3,
div.stat-card h3 {
    color: #000000 !important;
}

.list-header .list-header h2,
div.list-header h2 {
    color: var(--primary-color) !important;
}

.form-section .form-section h3,
div.form-section h3 {
    color: #000000 !important;
}

.search-header .search-header h2,
div.search-header h2 {
    color: var(--primary-color) !important;
}

.search-section .search-section h3,
div.search-section h3 {
    color: #000000 !important;
}

.search-form-header .search-form-header h3,
div.search-form-header h3 {
    color: #000000 !important;
}

.edit-zone-form .edit-zone-form .form-header h2,
div.edit-zone-form .form-header h2 {
    color: #ffffff !important;
}

.edit-zone-form .edit-zone-form .form-section h3,
div.edit-zone-form .form-section h3 {
    color: #000000 !important;
}

.edit-zone-form .edit-zone-form .form-label,
div.edit-zone-form .form-label {
    color: #000000 !important;
}

.edit-zone-form .edit-zone-form .checkbox-label,
div.edit-zone-form .checkbox-label {
    color: #000000 !important;
}

/* Ensure these styles apply regardless of user role */
body .dashboard h2 {
    color: var(--primary-color) !important;
}

body .role-info h3 {
    color: #000000 !important;
}

body .stat-card h3 {
    color: #000000 !important;
}

body .list-header h2 {
    color: var(--primary-color) !important;
}

body .form-section h3 {
    color: #000000 !important;
}

body .search-header h2 {
    color: var(--primary-color) !important;
}

body .search-section h3 {
    color: #000000 !important;
}

body .search-form-header h3 {
    color: #000000 !important;
}

body .edit-zone-form .form-header h2 {
    color: #ffffff !important;
}

body .edit-zone-form .form-section h3 {
    color: #000000 !important;
}

body .edit-zone-form .form-label {
    color: #000000 !important;
}

body .edit-zone-form .checkbox-label {
    color: #000000 !important;
}

body .edit-zone-form .form-input {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #000000 !important;
}/* 
Zone Statistics Styles */
.stats-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
    margin-top: var(--spacing-6);
}

.stats-section {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--spacing-6);
    box-shadow: var(--shadow-sm);
}

.stats-section h3 {
    color: var(--gray-800);
    margin-bottom: var(--spacing-4);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-2);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-4);
}

.info-item {
    background: var(--white);
    padding: var(--spacing-3);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.info-item strong {
    color: var(--gray-700);
    display: block;
    margin-bottom: var(--spacing-1);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trend-chart {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.trend-chart .admin-table {
    margin: 0;
    border-radius: 0;
}

.trend-chart .admin-table th {
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: var(--font-weight-semibold);
}

.trend-chart .admin-table td {
    color: var(--gray-600);
}

.trend-chart .admin-table tbody tr:hover {
    background: var(--gray-25);
}

/* Responsive adjustments for stats */
@media (max-width: 768px) {
    .stats-details {
        gap: var(--spacing-4);
    }
    
    .stats-section {
        padding: var(--spacing-4);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-3);
    }
    
    .info-item {
        padding: var(--spacing-2);
    }
}/
* Export Results Button Styling */
#export-results {
    min-width: 180px !important;
    white-space: nowrap !important;
    padding: 8px 24px !important;
    display: inline-block !important;
    text-align: center !important;
    width: auto !important;
}

/* Ensure export button doesn't wrap text on smaller screens */
@media (max-width: 768px) {
    #export-results {
        min-width: 160px !important;
        font-size: 0.9rem !important;
        padding: 6px 20px !important;
    }
}/* Fix result-card horizontal alignment */
.result-details {
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    gap: var(--spacing-4);
    align-items: stretch;
    grid-template-rows: auto;
}

.detail-column {
    display: flex;
    flex-direction: column;
    min-height: 120px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-2);
    margin-bottom: var(--spacing-2);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    border: 1px solid rgba(226, 232, 240, 0.3);
    height: 44px; /* Fixed height instead of min-height */
    box-sizing: border-box;
    line-height: 1.2;
}

.detail-label {
    font-weight: var(--font-weight-medium);
    color: var(--gray-600);
    min-width: 120px;
    margin-right: var(--spacing-3);
    flex-shrink: 0;
}

.detail-value {
    color: var(--gray-800);
    text-align: right;
    flex: 1;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure dividers align properly */
.result-details .divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(148, 163, 184, 0.8), transparent);
    height: 100%;
    min-height: 120px;
    align-self: stretch;
}

/* Responsive adjustments for result cards */
@media (max-width: 768px) {
    .result-details {
        grid-template-columns: 1fr;
        gap: var(--spacing-3);
    }
    
    .result-details .divider {
        display: none;
    }
    
    .detail-column {
        min-height: auto;
    }
    
    .detail-row {
        min-height: 40px;
    }
    
    .detail-label {
        min-width: 100px;
    }
}/* Enha
nced result-card row alignment */
.result-details {
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    grid-template-rows: repeat(2, 44px);
    gap: var(--spacing-4) var(--spacing-4);
    align-items: center;
}

.detail-column {
    display: contents;
}

.detail-column .detail-row:nth-child(1) {
    grid-row: 1;
}

.detail-column .detail-row:nth-child(2) {
    grid-row: 2;
}

.detail-column:nth-child(1) .detail-row:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.detail-column:nth-child(1) .detail-row:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.detail-column:nth-child(3) .detail-row:nth-child(1) {
    grid-column: 3;
    grid-row: 1;
}

.detail-column:nth-child(3) .detail-row:nth-child(2) {
    grid-column: 3;
    grid-row: 2;
}

.detail-column:nth-child(5) .detail-row:nth-child(1) {
    grid-column: 5;
    grid-row: 1;
}

.detail-column:nth-child(5) .detail-row:nth-child(2) {
    grid-column: 5;
    grid-row: 2;
}

.divider:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / 3;
}

.divider:nth-child(4) {
    grid-column: 4;
    grid-row: 1 / 3;
}