:root {
    --app-bg: #0b1220;
    --app-bg-soft: #0f172a;
    --app-card: #111b2e;
    --app-card-2: #16243b;
    --app-text: #e5e7eb;
    --app-muted: #9ca3af;
    --app-border: #263246;
    --app-primary: #3b82f6;
    --app-accent: #60a5fa;
}

body,
input,
button,
select,
textarea {
    font-family: "Open Sans", Arial, sans-serif !important;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top right, #182841 0%, #101a2e 30%, var(--app-bg) 100%);
    color: var(--app-text);
}

.app-shell main {
    max-width: 1440px;
}

.app-navbar {
    background: linear-gradient(90deg, #091224 0%, #111f35 100%) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--app-border);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.app-brand-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.25);
}

.nav-link {
    color: #cbd5e1 !important;
    border-radius: 8px;
    margin-right: 2px;
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
}

.navbar-nav .nav-item {
    margin: 0 4px;
}

.nav-link.active {
    color: #fff !important;
    background: rgba(96, 165, 250, 0.24);
}

.card {
    border: 1px solid var(--app-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--app-card);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.card-header {
    background: linear-gradient(180deg, #1a2840 0%, #142237 100%);
    border-bottom: 1px solid var(--app-border);
    font-weight: 600;
    color: #e2e8f0;
}

.table {
    margin-bottom: 0;
    color: #e5e7eb;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: #0e1a2d;
    --bs-table-striped-color: #e5e7eb;
    --bs-table-hover-bg: #17233a;
    --bs-table-hover-color: #f8fafc;
    --bs-table-border-color: var(--app-border);
}

.table > :not(caption) > * > * {
    padding: 0.75rem 0.9rem;
    vertical-align: middle;
}

.table thead th {
    background: #15253d;
    color: #cbd5e1;
    font-weight: 600;
    border-bottom-width: 1px;
}

.list-email-table tbody td,
.list-email-table tbody td * {
    color: #ffffff !important;
}

.list-page-table tbody td,
.list-page-table tbody td * {
    color: #ffffff !important;
}

.send-run-table tbody td,
.send-run-table tbody td * {
    color: #ffffff !important;
}

.send-status-badge {
    border-radius: 5px !important;
    padding: 0.35rem 0.55rem;
    color: #ffffff !important;
}

.send-status-badge.status-active {
    background-color: #198754 !important;
}

.send-status-badge.status-paused {
    background-color: #f59e0b !important;
}

.send-status-badge.status-stopped {
    background-color: #dc3545 !important;
}

.send-status-badge.status-completed {
    background-color: #2563eb !important;
}

.send-status-badge.status-draft,
.send-status-badge.status-default {
    background-color: #6b7280 !important;
}

.dashboard-campaign-row,
.dashboard-campaign-row *,
.dashboard-campaign-meta,
.dashboard-campaign-empty {
    color: #ffffff !important;
}

.form-control,
.form-select {
    background-color: #0f1b2f;
    color: #e5e7eb;
    border-radius: 5px;
    border-color: #334155;
    min-height: 42px;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:disabled,
.form-select:disabled {
    background-color: #0b1425;
    color: #94a3b8;
}

.form-control:focus,
.form-select:focus {
    background-color: #101f35;
    color: #f8fafc;
    border-color: var(--app-accent);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.22);
}

.form-check-input {
    background-color: #0f1b2f;
    border-color: #475569;
}

.form-check-input:checked {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.form-label,
.form-check-label {
    color: #cbd5e1;
}

.form-text,
.text-muted {
    color: var(--app-muted) !important;
}

.btn {
    border-radius: 5px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
}

.btn-success {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    border-color: #16a34a;
}

.btn-outline-primary {
    color: #93c5fd;
    border-color: #3b82f6;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #2563eb;
}

.btn-outline-secondary {
    color: #cbd5e1;
    border-color: #475569;
}

.btn-outline-light {
    color: #e2e8f0;
    border-color: #64748b;
}

.badge {
    font-weight: 600;
    letter-spacing: 0.2px;
}

.progress {
    background-color: #1e293b;
    border-radius: 999px;
}

.progress-bar {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.alert {
    border-radius: 10px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.45);
    color: #bbf7d0;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
}

.alert-warning {
    background-color: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.45);
    color: #fde68a;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.45);
    color: #bfdbfe;
}

.auth-page {
    display: flex;
    align-items: center;
}

.auth-page .container {
    max-width: 820px;
}

.auth-card .card-header {
    padding: 1rem 1.25rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-brand-icon {
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.35);
}

.auth-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    color: #f8fafc;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.border {
    border-color: var(--app-border) !important;
}

.text-secondary {
    color: #9fb0c7 !important;
}

a {
    color: #93c5fd;
}

a:hover {
    color: #bfdbfe;
}

hr {
    border-color: var(--app-border);
}

code {
    color: #c4b5fd;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--app-border);
    border-radius: 6px;
    padding: 2px 6px;
    white-space: pre-wrap;
    word-break: break-word;
}
