body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        background-color: #f8f9fa;
}

.auth-container {
        max-width: 400px;
        margin: 100px auto;
        padding: 30px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pin-input {
        display: flex;
        justify-content: space-between;
        margin: 20px 0;
}

.pin-digit {
        width: 50px;
        height: 60px;
        font-size: 32px;
        text-align: center;
        border: 2px solid #dee2e6;
        border-radius: 8px;
        transition: all 0.3s;
}

.pin-digit:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
        outline: none;
}

.pin-digit.filled {
        background-color: #e7f3ff;
        border-color: #0d6efd;
}

.lockout-timer {
        background: #fff3cd;
        border: 1px solid #ffc107;
        padding: 15px;
        border-radius: 5px;
        margin: 15px 0;
        text-align: center;
}

.lockout-timer .timer {
        font-size: 24px;
        font-weight: bold;
        color: #856404;
}

.agent-badge {
        display: inline-flex;
        align-items: center;
        padding: 8px 12px;
        background: rgba(var(--bs-primary-rgb), 0.1);
        border: 1px solid var(--bs-primary);
        border-radius: 20px;
        font-size: 14px;
        margin-left: 10px;
}

.agent-badge i {
        margin-right: 5px;
        color: var(--bs-primary);
}

.conversation-card {
        background: white;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        transition: all 0.3s;
        cursor: pointer;
}

.conversation-card:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        transform: translateY(-2px);
}

.conversation-card.unread {
        border-left: 4px solid var(--bs-primary);
}

.conversation-badge {
        display: inline-block;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: bold;
        margin-left: 8px;
}

.badge-new {
        background: var(--bs-primary);
        color: white;
}

.badge-transcript {
        background: var(--bs-success);
        color: white;
}

.status-banner {
        background: #d1ecf1;
        border: 1px solid #bee5eb;
        padding: 10px 15px;
        border-radius: 5px;
        margin: 15px 0;
}

.status-banner.active {
        background: #d4edda;
        border-color: #c3e6cb;
}

.status-banner.inactive {
        background: #f8d7da;
        border-color: #f5c6cb;
}

.email-list-item {
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
}

.email-status {
        display: inline-block;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: bold;
}

.email-status.verified {
        background: #d4edda;
        color: #155724;
}

.email-status.pending {
        background: #fff3cd;
        color: #856404;
}

.email-status.inactive {
        background: #f8d7da;
        color: #721c24;
}

.transcript-viewer {
        background: white;
        border-radius: 8px;
        padding: 20px;
        max-height: 600px;
        overflow-y: auto;
}

.transcript-message {
        margin-bottom: 15px;
        padding: 10px 15px;
        border-radius: 8px;
}

.transcript-message.agent {
        background: #e7f3ff;
        margin-right: 20%;
}

.transcript-message.user {
        background: #f8f9fa;
        margin-left: 20%;
}

.transcript-speaker {
        font-weight: bold;
        margin-bottom: 5px;
        font-size: 14px;
}

.transcript-timestamp {
        font-size: 12px;
        color: #6c757d;
        margin-left: 10px;
}

.empty-state {
        text-align: center;
        padding: 60px 20px;
        color: #6c757d;
}

.empty-state i {
        font-size: 64px;
        margin-bottom: 20px;
        opacity: 0.3;
}

.notification-item {
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 10px;
}

.notification-status {
        display: inline-block;
        padding: 3px 8px;
        border-radius: 3px;
        font-size: 11px;
        font-weight: bold;
}

.notification-status.sent {
        background: #d4edda;
        color: #155724;
}

.notification-status.failed {
        background: #f8d7da;
        color: #721c24;
}

.notification-status.queued {
        background: #fff3cd;
        color: #856404;
}

@media (max-width: 768px) {
        .pin-digit {
                width: 40px;
                height: 50px;
                font-size: 24px;
        }
        
        .auth-container {
                margin: 50px 15px;
                padding: 20px;
        }
        
        .transcript-message.agent,
        .transcript-message.user {
                margin-left: 0;
                margin-right: 0;
        }
}
.card-compact { margin-bottom: 0; }
.card-compact .card-header { padding: 0.5rem 0.75rem; background-color: #f8f9fa; border-bottom: 1px solid #dee2e6; }
.card-compact .card-body { padding: 0.5rem; }
.card-compact .btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; }

/* Palette picker */
.palette-card {
        position: relative;
        display: block;
        border: 1px solid var(--bs-border-color, #dee2e6);
        border-radius: 0.75rem;
        transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
        cursor: pointer;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.palette-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}
.palette-card.active {
        border-color: var(--bs-primary, #0d6efd);
        box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb, 13,110,253), .18);
}
.palette-card.active::after {
        content: "\f00c";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        color: var(--bs-primary, #0d6efd);
        font-size: 1rem;
}
.palette-card input[type="radio"] {
        position: absolute;
        inset: 0;
        opacity: 0;
        pointer-events: none;
}
.palette-card .card-body {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
}
.palette-card .swatch-row {
        display: flex;
        gap: 0.5rem;
}
.palette-card .swatch {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid rgba(15, 23, 42, 0.06);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}
.palette-card .preview {
        display: flex;
        align-items: center;
        gap: 0.5rem;
}
.palette-card .preview .btn,
.palette-card .preview .badge {
        pointer-events: none;
}
.palette-card .preview .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
}
.palette-card .preview .badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.55rem;
}
@media (max-width: 576px) {
        .palette-card { min-height: 100%; }
        .palette-card .swatch { width: 32px; height: 32px; }
}
