/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #e65100;
    --primary-dark: #bf360c;
    --primary-light: #ff8a65;
    --secondary: #37474f;
    --success: #2e7d32;
    --warning: #f57f17;
    --danger: #c62828;
    --bg-light: #fafafa;
    --bg-card: #ffffff;
    --text-dark: #212121;
    --text-muted: #757575;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 12px;
}

/* ===== BASE ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== STICKY FOOTER ===== */
.footer {
    margin-top: auto;
}

/* ===== LANDING PAGE ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.hero-icon {
    font-size: 5rem;
    opacity: 0.3;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

/* ===== PRICING CARDS ===== */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.pricing-card .price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-card .plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pricing-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

/* ===== AUTH PAGES ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

.auth-card .logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
}

/* ===== DASHBOARD ===== */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    box-shadow: var(--shadow-hover);
}

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

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CAMPAIGN CARDS ===== */
.campaign-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.campaign-card:hover {
    box-shadow: var(--shadow-hover);
}

.campaign-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.campaign-card .card-body {
    padding: 20px;
}

.campaign-card .badge-status {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ===== TABLE STYLES ===== */
.data-table {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.data-table table {
    margin-bottom: 0;
}

.data-table thead th {
    background: var(--secondary);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border: none;
}

.data-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-color: var(--border-color);
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-custom {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
}

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

/* ===== UPLOAD AREA ===== */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--bg-light);
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: #fff3e0;
}

.upload-area .upload-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* ===== PROGRESS BAR ===== */
.queue-progress {
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    overflow: hidden;
}

.queue-progress .progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ===== SHARE BUTTONS ===== */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.share-whatsapp { background: #25D366; color: white; }
.share-facebook { background: #1877F2; color: white; }
.share-telegram { background: #0088cc; color: white; }
.share-copy { background: #607D8B; color: white; }

/* ===== ANALYTICS ===== */
.analytics-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* ===== ALERT / TOAST ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section {
        padding: 40px 0;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
    .auth-card {
        padding: 24px;
        margin: 16px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }
    .hero-icon {
        font-size: 3rem;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9e9e9e;
}

/* ===== LOADING SPINNER ===== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h4 {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

/* ===== STATUS BADGES ===== */
.badge-draft { background: #9e9e9e; }
.badge-active { background: #2e7d32; }
.badge-completed { background: #1565c0; }
.badge-pending { background: #f57f17; }
.badge-sent { background: #2e7d32; }
.badge-failed { background: #c62828; }
.badge-delivered { background: #00838f; }
