/* assets/css/style.css - Custom Modern Styles for Bulk Mailer */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-page: #f8fafc;
    --card-border: #e2e8f0;
}

body {
    background-color: var(--bg-page);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

/* Navbar */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--card-border);
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    border-radius: 10px;
}

/* Cards */
.card {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background-color: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--card-border);
    font-weight: 600;
}

/* Stats Cards */
.stat-card {
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: #ffffff;
}

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

.stat-icon.total { background: #eef2ff; color: #4f46e5; }
.stat-icon.pending { background: #fef3c7; color: #d97706; }
.stat-icon.sent { background: #d1fae5; color: #059669; }
.stat-icon.failed { background: #fee2e2; color: #dc2626; }

/* Dropzone */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

/* Tag buttons in template editor */
.tag-btn {
    cursor: pointer;
    font-size: 0.8rem;
    padding: 3px 8px;
    background-color: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
    margin-bottom: 4px;
    transition: all 0.15s;
    user-select: none;
}

.tag-btn:hover {
    background-color: #4f46e5;
    color: #ffffff;
}

/* Recipients Table */
.table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
    border-top: none;
    background-color: #f8fafc;
}

.table td {
    vertical-align: middle;
    font-size: 0.92rem;
}

.table-hover tbody tr:hover {
    background-color: #f1f5f9;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Status Badges */
.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-sent {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-failed {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.token-badge {
    font-family: monospace;
    font-size: 0.85rem;
    background-color: #f1f5f9;
    color: #334155;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Terminal / Live Log Box */
.terminal-box {
    background-color: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.82rem;
    max-height: 250px;
    overflow-y: auto;
}

.terminal-box .log-item {
    margin-bottom: 4px;
    display: flex;
    gap: 8px;
}

.terminal-box .log-time {
    color: #94a3b8;
}

.terminal-box .log-sent {
    color: #34d399;
}

.terminal-box .log-failed {
    color: #f87171;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
