/* ========================================
   FRONT PAGES (Home, Invoices, Privacy)
   ======================================== */

/* ===== المتغيرات العامة ===== */
:root {
    --primary: #231047;
    --primary-light: #3a1a75;
    --gold: #ffb600;
    --gold-light: #ffd966;
    --bg-light: #f8f5ff;
    --white: #ffffff;
    --gray-text: #666;
    --gray-light: #eee;
}

/* ===== الخط العام ===== */
* {
    font-family: 'Cairo', sans-serif;
}

body {
    background: var(--bg-light);
    min-height: 100vh;
}

/* ========================================
   HERO SECTION (Home Page)
   ======================================== */
.hero-section {
    padding: 100px 0 80px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 182, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 30px;
}

.btn-hero {
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 50px;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.btn-hero-primary {
    background: var(--gold);
    color: var(--primary);
    border: none;
}

.btn-hero-primary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 182, 0, 0.4);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gold);
}

.btn-hero-outline:hover {
    background: var(--gold);
    color: var(--primary);
    transform: translateY(-3px);
}

.hero-image {
    width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ========================================
   STATUS CHECK (Home Page)
   ======================================== */
.status-check {
    background: var(--white);
    border-radius: 50px;
    padding: 5px;
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid var(--gold);
}

.status-input {
    border: none;
    padding: 15px 25px;
    width: 70%;
    border-radius: 50px;
    outline: none;
}

.status-input:focus {
    box-shadow: 0 0 0 2px rgba(255, 182, 0, 0.2);
}

.status-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    width: 28%;
    transition: all 0.3s ease;
}

.status-btn:hover {
    background: var(--gold);
    color: var(--primary);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(255, 182, 0, 0.4);
}

/* ========================================
   BADGE
   ======================================== */
.badge-brand {
    background: var(--gold);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
}

/* ========================================
   SERVICES SECTION (Home Page)
   ======================================== */
.services-section {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray-text);
    font-size: 16px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(35, 16, 71, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(35, 16, 71, 0.2);
    border-color: var(--gold);
}

.service-icon {
    width: 100px;
    height: 100px;
    line-height: 100px;
    text-align: center;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 25px;
    border: 3px solid var(--gold);
}

.service-icon i {
    font-size: 40px;
    color: var(--gold);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    color: var(--gray-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.service-link:hover {
    color: var(--gold);
    transform: translateX(-5px);
    border-bottom-color: var(--gold);
}

.service-link i {
    color: var(--gold);
}

/* ========================================
   FEATURES SECTION (Home Page)
   ======================================== */
.features-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.feature-item {
    text-align: center;
    margin-bottom: 30px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: var(--white);
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(35, 16, 71, 0.1);
    border: 2px solid var(--gold);
}

.feature-icon i {
    font-size: 30px;
    color: var(--primary);
}

.feature-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.feature-item p {
    color: var(--gray-text);
    font-size: 14px;
}

/* ========================================
   CTA SECTION (Home Page)
   ======================================== */
.cta-section {
    padding: 80px 0;
    background: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 182, 0, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content h2 span {
    color: var(--gold);
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-cta {
    background: var(--gold);
    color: var(--primary);
    padding: 15px 40px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid var(--gold);
}

.btn-cta:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 182, 0, 0.3);
}

/* ========================================
   TABLE (Invoices Page)
   ======================================== */
.table {
    margin-top: 30px;
}

.table tbody tr:hover {
    background: var(--bg-light) !important;
}

.table tbody tr td {
    vertical-align: middle;
}

.btn:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}

/* ========================================
   PRIVACY PAGE
   ======================================== */
.privacy-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 0 80px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.privacy-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 182, 0, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.privacy-title {
    position: relative;
    z-index: 1;
}

.privacy-title h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.privacy-title h1 span {
    color: var(--gold);
}

.privacy-title p {
    font-size: 18px;
    opacity: 0.9;
}

.privacy-badge {
    background: var(--gold);
    color: var(--primary);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.privacy-content {
    margin-top: -50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.privacy-card {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(35, 16, 71, 0.1);
    border: 1px solid rgba(255, 182, 0, 0.2);
}

.last-updated {
    background: var(--bg-light);
    padding: 15px 25px;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 40px;
}

.last-updated i {
    color: var(--gold);
    margin-left: 10px;
}

.policy-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-light);
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--gold);
    color: var(--primary);
    border-radius: 10px;
    font-weight: 700;
    margin-left: 15px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 10px 0;
    padding-right: 30px;
    position: relative;
}

.info-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.highlight-box {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border-right: 4px solid var(--gold);
}

.contact-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 15px;
    padding: 30px;
    color: var(--white);
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 182, 0, 0.2);
    transform: translateX(-5px);
}

.contact-icon {
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: var(--gold);
    color: var(--primary);
    border-radius: 10px;
    margin-left: 15px;
    font-size: 20px;
}

.contact-info h5 {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.contact-info p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* ========================================
   FLOATING ACTION (Privacy Page)
   ======================================== */
.floating-action {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.btn-floating {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 5px 20px rgba(255, 182, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-floating:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: var(--gold);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    /* Hero */
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons .btn-hero {
        display: block;
        margin: 10px 0;
    }
    
    .status-check {
        border-radius: 20px;
    }
    
    .status-input, .status-btn {
        width: 100%;
        border-radius: 20px;
    }
    
    .status-btn {
        margin-top: 10px;
    }

    /* Privacy */
    .privacy-card {
        padding: 25px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .privacy-title h1 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    /* Container */
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    h4 {
        font-size: 18px;
    }
    
    .btn-sm {
        padding: 4px 12px !important;
        font-size: 13px;
    }
    
    .table td, .table th {
        padding: 10px !important;
        font-size: 13px !important;
    }
    
    .alert {
        font-size: 13px !important;
    }

    /* Privacy */
    .privacy-card {
        padding: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .privacy-title h1 {
        font-size: 28px;
    }
}
/* ========================================
   STATS SECTION (Home Page)
   ======================================== */
.stats-section {
    padding: 60px 0;
    background: var(--white);
}

.stats-section h2 {
    color: var(--primary);
    font-size: 48px;
    font-weight: 800;
}

.stats-section p {
    color: var(--gold);
    font-weight: 600;
    font-size: 16px;
}

/* ========================================
   INVOICES PAGE
   ======================================== */
.btn-edit {
    background: var(--gold);
    color: var(--primary);
    border-radius: 8px;
    padding: 6px 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background: var(--primary);
    color: var(--white);
}

.card-custom {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(35, 16, 71, 0.08);
    overflow: hidden;
}

.alert-custom {
    border-radius: 8px;
    border-right: 3px solid var(--gold);
    padding: 8px 15px;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-custom.alert-success {
    background: #f0f9ff;
    color: var(--primary);
}

.alert-custom i {
    color: var(--gold);
    font-size: 18px;
}

.table-custom {
    width: 100%;
    min-width: 300px;
    margin-bottom: 0;
}

.table-custom thead tr {
    background: var(--bg-light);
}

.table-custom thead th {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-bottom: 2px solid var(--gold);
}

.table-custom thead th i {
    color: var(--gold);
    margin-left: 5px;
}

.table-custom tbody tr {
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.table-custom tbody tr:hover {
    background: var(--bg-light);
}

.table-custom tbody td {
    padding: 8px 12px;
    color: var(--primary);
    font-size: 14px;
    vertical-align: middle;
}

.table-custom tbody td:last-child {
    font-weight: 500;
}

.table-custom .empty-state {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 14px;
}

.table-custom .empty-state i {
    color: var(--gold);
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}
/* ========================================
   PRIVACY PAGE
   ======================================== */
.lead {
    color: var(--primary);
    font-size: 18px;
    line-height: 1.8;
}

.highlight-box i.bi-check-circle-fill {
    color: var(--gold);
}