/* =====================
   GLOBAL RESET & BASE
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

body {
    background: #f4f6f8;
    color: #1f2937;
}

/* =====================
   NAVBAR
===================== */
.navbar {
    height: 64px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    color: white;
}

.logo {
    font-size: 18px;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.profile {
    font-size: 13px;
}

.logout {
    margin-left: 12px;
    color: #f87171;
    text-decoration: none;
}

/* =====================
   PAGE WRAPPER
===================== */
.page {
    padding: 32px;
    animation: fadeIn 0.4s ease;
}

/* =====================
   CARDS
===================== */
.card {
    background: white;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}

/* =====================
   FORMS (LOGIN / SIGNUP / UPLOAD)
===================== */
.form-container {
    max-width: 420px;
    margin: 80px auto;
    background: white;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    animation: slideUp 0.5s ease;
}

.form-container h1 {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.form-group input,
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
}

/* =====================
   BUTTONS
===================== */
.btn {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* =====================
   TABLES (EMAILS / CAMPAIGNS)
===================== */
.table-card {
    margin-top: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f1f5f9;
    text-align: left;
    padding: 14px;
    font-size: 13px;
}

td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

tr:hover {
    background: #f8fafc;
    cursor: pointer;
}

/* =====================
   STATUS BADGES
===================== */
.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge.SENT {
    background: #dcfce7;
    color: #166534;
}

.badge.FAILED,
.badge.BOUNCED {
    background: #fee2e2;
    color: #991b1b;
}

.badge.PENDING {
    background: #e0f2fe;
    color: #075985;
}

/* =====================
   CHART CONTAINER
===================== */
.chart-box {
    max-width: 360px;
    margin-top: 30px;
}

/* =====================
   LINKS
===================== */
a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =====================
   FLASH MESSAGES
===================== */
.flash {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
}

/* =====================
   ANIMATIONS
===================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
