/* Clean White Theme for PVABoom */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --brand-orange: #ff7a00;
    --brand-blue: #244a6b;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --dark: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    --radius-lg: 14px;
    --radius-md: 10px;
}

/* Body */
body {
    background: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    color: #1e293b;
}

/* Navbar */
.navbar-dark {
    background: #ffffff !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 0.85rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.navbar .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.navbar .navbar-brand i {
    color: var(--brand-orange);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.2px;
    color: #1e293b !important;
}

.navbar-brand {
    text-transform: uppercase;
}

.nav-link {
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 999px;
    margin: 0 0.25rem;
    color: #64748b !important;
}

.nav-link:hover {
    background: #f1f5f9;
    color: var(--brand-orange) !important;
}

.nav-link.active {
    background: rgba(255, 122, 0, 0.10);
    color: var(--brand-orange) !important;
}


.navbar-text {
    font-weight: 600;
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: 0 0.5rem;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

/* Cards */
.card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
    overflow: hidden;
    background: white;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
    background: #ffffff;
}

.card-header.bg-primary {
    background: var(--brand-blue) !important;
    color: white;
    border-bottom: none;
}

.card-header.bg-success {
    background: #10b981 !important;
    color: white;
    border-bottom: none;
}

.card-header.bg-info {
    background: #3b82f6 !important;
    color: white;
    border-bottom: none;
}

.card-header.bg-warning {
    background: #f59e0b !important;
    color: white;
    border-bottom: none;
}

.card-header.bg-danger {
    background: #ef4444 !important;
    color: white;
    border-bottom: none;
}

.card-body {
    padding: 1.5rem;
    background: #ffffff;
}

/* Buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: 0.875rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10);
}

.btn-primary {
    background: var(--brand-orange);
    color: white;
    border-color: var(--brand-orange);
}

.btn-primary:hover {
    background: #e56e00;
    border-color: #e56e00;
    color: white;
}

.btn-info {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
}

.btn-info:hover {
    background: #1f3f5b;
    border-color: #1f3f5b;
    color: white;
}

.btn-success {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
    color: white;
}

/* (removed duplicate .btn-info rules to keep brand-blue variant) */

.btn-warning {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: white;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-light {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-light:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

.btn-secondary {
    background: #64748b;
    color: white;
    border-color: #64748b;
}

.btn-secondary:hover {
    background: #475569;
    border-color: #475569;
    color: white;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: #f8fafc;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.table-hover tbody tr {
    transition: all 0.2s ease;
    background: white;
}

.table-hover tbody tr:hover {
    background: #f8fafc;
}

.table-sm thead th,
.table-sm tbody td {
    padding: 0.5rem 0.75rem;
}

.table-light {
    background: white;
}

/* Badges */
.badge {
    padding: 0.25em 0.6em;
    font-weight: 500;
    border-radius: 4px;
    font-size: 0.75rem;
}

.bg-success {
    background: #10b981 !important;
    color: white !important;
}

.bg-warning {
    background: #f59e0b !important;
    color: white !important;
}

.bg-danger {
    background: #ef4444 !important;
    color: white !important;
}

.bg-info {
    background: #3b82f6 !important;
    color: white !important;
}

.bg-primary {
    background: #2563eb !important;
    color: white !important;
}

/* Forms */
.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
}

/* Brand utility helpers (safe additions) */
.bg-brand-orange { background: var(--brand-orange) !important; color: #fff !important; }
.bg-brand-blue { background: var(--brand-blue) !important; color: #fff !important; }
.text-brand-orange { color: var(--brand-orange) !important; }
.text-brand-blue { color: var(--brand-blue) !important; }

.form-control-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* List Groups */
.list-group-item {
    border: 1px solid #e2e8f0;
    border-radius: 6px !important;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    padding: 0.75rem 1rem;
    background: white;
}

.list-group-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.list-group-item.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.list-group-flush .list-group-item {
    border-radius: 0 !important;
    margin-bottom: 0;
    border-left: 0;
    border-right: 0;
}

/* Modals */
.modal-content {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-lg);
    background: white;
}

.modal-header {
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    background: #f8fafc;
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-weight: 600;
    color: #1e293b;
}

/* Alerts */
.alert {
    border-radius: 6px;
    border: 1px solid;
    padding: 1rem;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.alert-info {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.alert-warning {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

.alert-danger {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* Stats Cards */
.stats-card {
    border-left: 4px solid;
    transition: all 0.2s ease;
    background: white;
}

.stats-card:hover {
    box-shadow: var(--shadow);
}

.stats-card.success {
    border-left-color: #10b981;
}

.stats-card.pending {
    border-left-color: #f59e0b;
}

.stats-card.failed {
    border-left-color: #ef4444;
}

.stats-card.total {
    border-left-color: #2563eb;
}

.stats-card h3 {
    font-weight: 700;
    font-size: 2rem;
    color: #1e293b;
}

.stats-card h6 {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #64748b;
}

/* Loading Overlay */
.loading-overlay {
    backdrop-filter: blur(4px);
    background: rgba(248, 250, 252, 0.9) !important;
}

.loading-spinner .spinner-border {
    border-width: 0.3rem;
    border-color: #2563eb;
    border-right-color: transparent;
    width: 3rem;
    height: 3rem;
}

.loading-spinner p {
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Container */
.container-fluid {
    padding: 2.5rem;
    background: transparent;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 0.25rem;
    border: none;
    color: var(--primary);
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border: none;
}

.pagination .page-link:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-in {
    animation: slideIn 0.5s ease;
}

/* Service Icon Letter */
.service-icon-letter {
    background: #2563eb !important;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
}

/* Utilities */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-lg {
    border-radius: 12px !important;
}

.rounded-xl {
    border-radius: 16px !important;
}

/* Text Colors */
.text-primary {
    color: #2563eb !important;
}

.text-success {
    color: #10b981 !important;
}

.text-warning {
    color: #f59e0b !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-info {
    color: #3b82f6 !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1e293b;
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #1e40af;
    text-decoration: none;
}

/* Auth pages (login/register) */
body.bg-light .min-vh-100 .card {
    width: 100%;
    max-width: 420px;
}

body.bg-light .min-vh-100 .card-body.p-5 {
    padding: 2rem !important;
}

body.bg-light .min-vh-100 .card-body .mb-3 {
    margin-bottom: 0.85rem !important;
}

@media (max-width: 420px) {
    body.bg-light .min-vh-100 .card-body.p-5 {
        padding: 1.25rem !important;
    }
}
