/* Global Dark Theme Fix */
body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #cbd5e1 !important;
    min-height: 100vh;
}

html {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* Ensure all pages have dark background */
.main-wrapper,
.dashboard-wrapper,
.user-wrapper,
.content-wrapper,
.page-wrapper {
    background: transparent !important;
}

/* Additional form fixes for better visibility */
.form-control,
.form-select,
input,
textarea,
select {
    background: rgba(15, 23, 42, 0.9) !important;
    border: 2px solid rgba(59, 130, 246, 0.4) !important;
    color: white !important;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    background: rgba(15, 23, 42, 1) !important;
    border-color: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

/* Text visibility fixes */
label,
.form-label {
    color: #e2e8f0 !important;
    font-weight: 600 !important;
}

/* Card fixes */
.card {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    backdrop-filter: blur(20px) !important;
}

.card-header {
    background: rgba(59, 130, 246, 0.1) !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: white !important;
}

.card-body {
    color: #cbd5e1 !important;
}

/* Button fixes */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: none !important;
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    color: white !important;
}
