/* Custom Styles for Vedumm Astrology Admin CRM - Premium Dark/Gold Theme */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #080a10;
    --bg-card: rgba(18, 22, 35, 0.7);
    --gold-primary: #d4af37;
    --gold-secondary: #aa7c11;
    --gold-light: #f6e095;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --border-gold: rgba(212, 175, 55, 0.25);
    --border-gold-glow: rgba(212, 175, 55, 0.6);
    --bg-sidebar: #0b0d16;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 10% 20%, rgba(212, 175, 55, 0.05) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(170, 124, 17, 0.05) 0px, transparent 50%);
    color: var(--text-light);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-gold);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
}

.sidebar-brand {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.sidebar-logo {
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.sidebar-title {
    color: var(--gold-primary);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.25rem;
    margin: 0;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-subtitle {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sidebar-menu {
    padding: 1.5rem 0;
    list-style: none;
    margin: 0;
}

.sidebar-menu-item {
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.sidebar-menu-link:hover, .sidebar-menu-link.active {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.sidebar-menu-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: var(--gold-primary);
}

/* Layout Main Content */
.main-wrapper {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.top-navbar {
    background-color: rgba(11, 13, 22, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gold);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 99;
}

.content-body {
    padding: 2rem;
    flex-grow: 1;
}

/* Premium Card Design */
.gold-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.gold-card:hover {
    border-color: var(--border-gold-glow);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
}

.gold-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gold-card-title {
    color: var(--gold-primary);
    font-weight: 600;
    margin: 0;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
}

.gold-card-title i {
    margin-right: 0.5rem;
}

.gold-card-body {
    padding: 1.5rem;
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold-primary), var(--gold-secondary));
}

.stat-card:hover {
    border-color: var(--border-gold-glow);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.stat-value {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.85;
}

/* Form Styles */
.form-label {
    color: var(--gold-primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    background-color: rgba(8, 10, 16, 0.6);
    border: 1px solid var(--border-gold);
    color: var(--text-light);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(8, 10, 16, 0.9);
    border-color: var(--gold-primary);
    color: var(--text-light);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
    outline: none;
}

.form-check-input {
    background-color: rgba(8, 10, 16, 0.6);
    border: 1px solid var(--border-gold);
    cursor: pointer;
}

.form-check-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

.form-check-input:checked {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.form-control::placeholder {
    color: #4b5563;
}

.form-select option {
    background-color: #0b0d16;
    color: var(--text-light);
}

/* Custom Table Styles */
.gold-table {
    width: 100%;
    color: var(--text-light);
    border-collapse: collapse;
}

.gold-table th {
    background-color: rgba(212, 175, 55, 0.05);
    border-bottom: 2px solid var(--border-gold);
    color: var(--gold-primary);
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
}

.gold-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-gold);
    vertical-align: middle;
}

.gold-table tr:hover td {
    background-color: rgba(212, 175, 55, 0.02);
}

/* Badges */
.badge-active {
    background-color: rgba(25, 135, 84, 0.15);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.3);
    padding: 0.35em 0.65em;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-inactive {
    background-color: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
    padding: 0.35em 0.65em;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-pending {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 0.35em 0.65em;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    color: #000;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-danger-custom {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    transition: all 0.2s ease;
}

.btn-danger-custom:hover {
    background-color: #dc3545;
    color: #fff;
}

/* Form Section Headers */
.form-section-title {
    color: var(--gold-primary);
    font-size: 1.1rem;
    font-weight: 600;
    border-left: 3px solid var(--gold-primary);
    padding-left: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.08), transparent);
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

/* Login Page Styling */
.login-body {
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    background: rgba(18, 22, 35, 0.85);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--gold-secondary), var(--gold-primary), var(--gold-secondary));
}

/* Customer Profile Sheet (Certificate Style) */
.profile-sheet {
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent), rgba(18, 22, 35, 0.95);
    border: 2px solid var(--gold-primary);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.profile-sheet::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px dashed rgba(212, 175, 55, 0.2);
    pointer-events: none;
    border-radius: 10px;
}

.profile-header {
    border-bottom: 2px solid var(--border-gold);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-logo {
    max-height: 70px;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.profile-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.profile-meta-val {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

.profile-meta-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Numerology Grid */
.numerology-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.numerology-box {
    background: rgba(8, 10, 16, 0.7);
    border: 1px solid var(--border-gold);
    padding: 1.25rem 1rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.numerology-box:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.numerology-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.numerology-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Print CSS */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    .sidebar, .top-navbar, .no-print {
        display: none !important;
    }
    .main-wrapper {
        margin-left: 0 !important;
    }
    .profile-sheet {
        border: 2px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        padding: 1.5in !important;
    }
    .profile-sheet::after {
        border-color: #000 !important;
    }
    .numerology-box {
        border: 1px solid #000 !important;
        background: #fff !important;
    }
    .numerology-num, .profile-title, .form-section-title {
        color: #000 !important;
    }
    .profile-meta-val {
        color: #000 !important;
    }
    .gold-table th {
        background-color: #f2f2f2 !important;
        color: #000 !important;
        border-bottom: 2px solid #000 !important;
    }
    .gold-table td {
        border-bottom: 1px solid #ddd !important;
        color: #000 !important;
    }
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .sidebar {
        left: -260px;
    }
    .sidebar.show {
        left: 0;
    }
    .main-wrapper {
        margin-left: 0;
    }
    .top-navbar-toggle {
        display: block !important;
    }
    .numerology-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.top-navbar-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 1.25rem;
}

/* Custom Alert Banner */
.custom-alert {
    background-color: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f8d7da;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
}
