/* ========================================
   Centric Outreach — Brand Styles
   Primary: #E31937 (Centric Red)
   Secondary: #1a1a2e (Dark Navy)
   ======================================== */

:root {
    --centric-red: #E31937;
    --centric-red-dark: #c01530;
    --centric-red-light: #fce8eb;
    --centric-navy: #1a1a2e;
    --centric-navy-light: #2d2d44;
}

/* ---- Global ---- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f6f8;
    color: #2d2d44;
}

a { color: var(--centric-red); }
a:hover { color: var(--centric-red-dark); }

.cursor-pointer { cursor: pointer; }

/* ---- Navbar ---- */
.bg-centric {
    background: linear-gradient(135deg, var(--centric-navy) 0%, var(--centric-navy-light) 100%) !important;
}

.navbar-brand {
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: rgba(255,255,255,0.12);
}

/* ---- Buttons ---- */
.btn-centric {
    background-color: var(--centric-red);
    border-color: var(--centric-red);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-centric:hover {
    background-color: var(--centric-red-dark);
    border-color: var(--centric-red-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 25, 55, 0.3);
}

/* ---- Cards ---- */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
}

.campaign-card {
    cursor: pointer;
    transition: all 0.2s;
}

.campaign-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}

/* ---- Stat Cards ---- */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

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

.stat-card .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 0.25rem;
}

.stat-card-sm {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
}

.stat-card-sm .stat-value-sm {
    font-size: 1.4rem;
    font-weight: 800;
}

.stat-card-sm .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* ---- Badges ---- */
.bg-centric-light {
    background-color: var(--centric-red-light) !important;
}

.text-centric {
    color: var(--centric-red) !important;
}

.badge {
    font-weight: 600;
    padding: 0.35em 0.7em;
    border-radius: 6px;
}

/* ---- Tables ---- */
.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 700;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* ---- Login ---- */
.bg-centric-gradient {
    background: linear-gradient(135deg, var(--centric-navy) 0%, #16213e 50%, var(--centric-red-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-logo {
    font-size: 3rem;
    color: var(--centric-red);
    margin-bottom: 0.5rem;
}

.login-logo i {
    background: var(--centric-red-light);
    padding: 0.5rem;
    border-radius: 16px;
}

/* ---- Contact View ---- */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.info-item i {
    width: 20px;
    text-align: center;
}

.research-data {
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.email-body-preview {
    max-height: 300px;
    overflow-y: auto;
}

.reply-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Flash Messages ---- */
.flash-messages {
    margin-bottom: 1rem;
}

.alert {
    border-radius: 10px;
    border: none;
}

/* ---- Form Switches ---- */
.form-check-input:checked {
    background-color: var(--centric-red);
    border-color: var(--centric-red);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .stat-card-sm .stat-value-sm {
        font-size: 1.1rem;
    }
}

/* ---- Account Select ---- */
.account-select-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
}
