/* style.css - Premium Glassmorphic Dark Theme for Beauty4U */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #0b0f19;
    --bg-gradient: radial-gradient(circle at 10% 20%, #171e30 0%, #0b0f19 90%);
    --bg-glass: rgba(18, 26, 47, 0.65);
    --bg-glass-hover: rgba(26, 36, 62, 0.8);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-focus: rgba(99, 102, 241, 0.4);
    
    --text-primary: #ffffff;
    --text-muted: #ffffff;
    --text-highlight: #ffffff;
    
    --accent: #6366f1; /* Indigo */
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --accent-glow: rgba(99, 102, 241, 0.3);
    
    --success: #10b981; /* Emerald */
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    --warning: #f59e0b; /* Amber */
    --danger: #ef4444;  /* Rose/Red */
    
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: 'Outfit', 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--card-shadow);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    border-color: var(--border-glass-focus);
}

/* Inputs and Forms */
.form-control-custom {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease !important;
}

.form-control-custom:focus {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px var(--accent-glow) !important;
    outline: none !important;
}

.form-label-custom {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn-primary-custom {
    background: var(--accent-gradient);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: all 0.25s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.btn-primary-custom:active {
    transform: translateY(1px);
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Navbar */
.navbar-custom {
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
}

.navbar-brand-custom {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-highlight);
    text-decoration: none;
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tables */
.table-custom-container {
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid var(--border-glass);
}

.table-custom {
    margin-bottom: 0;
    color: var(--text-primary);
    width: 100%;
}

.table-custom th {
    background: rgba(15, 23, 42, 0.8) !important;
    color: var(--text-muted) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1.25rem 1.5rem !important;
    border-bottom: 1px solid var(--border-glass) !important;
    white-space: nowrap;
}

.table-custom td {
    background: transparent !important;
    padding: 1.25rem 1.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    vertical-align: middle;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.table-custom tbody tr {
    transition: all 0.15s ease;
}

.table-custom tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-highlight);
}

/* Badges */
.badge-custom {
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

.badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-inactive {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Custom Card Stats */
.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon-primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
}

.stat-icon-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* Modals */
.modal-content-custom {
    background: #0f172a !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

.modal-header-custom {
    border-bottom: 1px solid var(--border-glass) !important;
    padding: 1.5rem !important;
}

.modal-footer-custom {
    border-top: 1px solid var(--border-glass) !important;
    padding: 1.25rem !important;
}

/* SweetAlert Custom styling */
.swal2-popup-custom {
    background: #0f172a !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 16px !important;
}

.swal2-title-custom {
    color: var(--text-highlight) !important;
    font-family: 'Outfit', sans-serif !important;
}

.swal2-content-custom {
    color: var(--text-muted) !important;
    font-family: 'Inter', sans-serif !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Bootstrap Contrast Overrides for Dark Mode - ALL FONTS WHITE */
.text-muted, 
.text-secondary, 
.form-text,
.text-light,
.navbar-custom,
.navbar-brand-custom,
p,
label,
span,
strong,
h1,
h2,
h3,
h4,
h5,
h6,
input,
select,
textarea,
.table-custom th,
.table-custom td,
.table-custom td.text-muted,
.alert,
.alert-info,
.alert-warning,
.alert-danger,
.table-empty-state {
    color: #ffffff !important;
}

/* Maintain placeholder visibility slightly translucent for inputs */
::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.table-custom tbody tr:hover td {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
}

/* Mobile Responsiveness & Layout Scaling */
@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }
    
    .navbar-custom {
        padding: 0.75rem 0;
    }
    
    .navbar-brand-custom {
        font-size: 1.25rem;
    }
    
    .stat-card {
        padding: 1.2rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .btn-primary-custom, 
    .btn-secondary-custom {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .table-custom th,
    .table-custom td {
        padding: 0.6rem 0.5rem !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .glass-panel {
        padding: 1.25rem !important;
        border-radius: 12px;
    }
    
    .login-card {
        padding: 1.5rem !important;
    }
    
    .brand-logo {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .navbar-brand-custom {
        font-size: 1.15rem;
    }
    
    .stat-card {
        flex-direction: row;
        gap: 1rem;
    }
    
    .modal-body {
        padding: 0.5rem !important;
    }

    .modal-body .table-custom th,
    .modal-body .table-custom td {
        padding: 0.4rem 0.15rem !important;
        font-size: 0.72rem !important;
    }

    .modal-body .table-custom th:nth-child(1),
    .modal-body .table-custom td:nth-child(1) {
        width: 15% !important;
    }
    .modal-body .table-custom th:nth-child(2),
    .modal-body .table-custom td:nth-child(2) {
        width: 60% !important;
    }
    .modal-body .table-custom th:nth-child(3),
    .modal-body .table-custom td:nth-child(3) {
        width: 25% !important;
    }
}

.text-lime-green {
    color: #a3e635 !important;
}

.text-orange {
    color: #fd7e14 !important;
}
