/* Custom Stylesheet for Long-term SMS Management Console */
:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(22, 30, 49, 0.45);
    --bg-card-hover: rgba(30, 41, 67, 0.6);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(99, 102, 241, 0.35);
    
    --color-text-main: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-text-darker: #64748b;
    
    --color-brand: #6366f1;
    --color-brand-hover: #4f46e5;
    --color-brand-glow: rgba(99, 102, 241, 0.25);
    
    --color-valid: #10b981;
    --color-valid-bg: rgba(16, 185, 129, 0.1);
    --color-valid-border: rgba(16, 185, 129, 0.2);
    
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.1);
    --color-warning-border: rgba(245, 158, 11, 0.2);
    
    --color-invalid: #ef4444;
    --color-invalid-bg: rgba(239, 68, 68, 0.1);
    --color-invalid-border: rgba(239, 68, 68, 0.2);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(79, 70, 229, 0.12) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.25);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.45);
}

/* Header */
.app-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 24px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 640px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-brand), #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--color-brand-glow);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.logo-text h1 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-valid);
    box-shadow: 0 0 8px var(--color-valid);
    animation: pulse 2s infinite;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-hover));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.5);
    color: var(--color-text-main);
    border-color: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-icon-only {
    padding: 8px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-only:hover {
    background: rgba(30, 41, 59, 0.8);
    color: var(--color-text-main);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-icon-only.btn-danger-hover:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-invalid);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Layout container */
.main-layout {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

/* Stats dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.stat-card.border-valid { border-left: 4px solid var(--color-valid); }
.stat-card.border-warning { border-left: 4px solid var(--color-warning); }
.stat-card.border-invalid { border-left: 4px solid var(--color-invalid); }

.stat-card-icon {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-darker);
}

.stat-card-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.06);
}

.stat-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    margin-top: 8px;
}

.stat-desc {
    font-size: 0.7rem;
    color: var(--color-text-darker);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-desc svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Progress bar for analysis */
.progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
}

.progress-title {
    color: var(--color-brand);
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--color-brand), #818cf8);
    border-radius: 99px;
    width: 0;
    transition: width 0.3s ease;
}

/* Control Bar (Filters & Search) */
.control-bar {
    background: rgba(22, 30, 49, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

@media (max-width: 768px) {
    .control-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
}

.filter-tab-btn.active {
    background: var(--color-brand);
    color: white;
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 2px 8px var(--color-brand-glow);
}

.search-and-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .search-and-actions {
        width: 100%;
    }
}

.search-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px 8px 36px;
    font-size: 0.85rem;
    color: var(--color-text-main);
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 1px var(--color-brand);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--color-text-darker);
    pointer-events: none;
}

.search-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Exporter Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    margin-top: 8px;
    width: 190px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 50;
    display: none;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown-item {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: left;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-main);
}

.dropdown-item svg {
    width: 12px;
    height: 12px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

/* Data Table Card */
.table-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.data-table th {
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.badge-unchecked {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
}
.badge-unchecked .badge-dot { background-color: var(--color-text-darker); }

.badge-checking {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}
.badge-checking .badge-dot {
    background-color: var(--color-brand);
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.badge-valid {
    background: var(--color-valid-bg);
    border-color: var(--color-valid-border);
    color: var(--color-valid);
}
.badge-valid .badge-dot { background-color: var(--color-valid); }

.badge-warning {
    background: var(--color-warning-bg);
    border-color: var(--color-warning-border);
    color: var(--color-warning);
}
.badge-warning .badge-dot { background-color: var(--color-warning); }

.badge-invalid {
    background: var(--color-invalid-bg);
    border-color: var(--color-invalid-border);
    color: var(--color-invalid);
}
.badge-invalid .badge-dot { background-color: var(--color-invalid); }

/* Row data elements */
.phone-col {
    font-weight: 600;
    color: var(--color-text-main);
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-col svg {
    width: 14px;
    height: 14px;
    fill: var(--color-text-darker);
}

.expiry-col {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.expiry-col svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.token-col-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-text {
    font-family: var(--font-mono);
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text-darker);
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 12, 0.7);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-max-sm { max-width: 440px; }
.modal-max-md { max-width: 560px; }
.modal-max-lg { max-width: 680px; }

.modal-header {
    padding: 18px 24px;
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title-icon {
    width: 36px;
    height: 36px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand);
}

.modal-title-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.modal-title-text h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.modal-title-text p {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: 1px;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--color-text-main);
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 1px var(--color-brand);
}

textarea.form-control {
    resize: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.6;
}

/* File Upload drag area */
.drag-drop-area {
    border: 2px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: rgba(5, 7, 12, 0.15);
    position: relative;
    transition: all 0.2s ease;
}

.drag-drop-area:hover {
    border-color: var(--color-brand);
    background: rgba(99, 102, 241, 0.02);
}

.drag-drop-area input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drag-drop-icon {
    font-size: 1.8rem;
    color: var(--color-text-darker);
    margin-bottom: 8px;
}

.drag-drop-area:hover .drag-drop-icon {
    color: var(--color-brand);
}

.drag-drop-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.drag-drop-desc {
    font-size: 0.7rem;
    color: var(--color-text-darker);
    margin-top: 4px;
}

.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 12px 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.form-divider span {
    padding: 0 12px;
    font-size: 0.65rem;
    color: var(--color-text-darker);
    font-weight: 600;
    text-transform: uppercase;
}

/* Custom Alert Banner */
.info-alert {
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.75rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-alert-icon {
    width: 14px;
    height: 14px;
    fill: #818cf8;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-alert p {
    line-height: 1.5;
}

/* SMS Modal list views */
.sms-list-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 260px;
}

.sms-bubble {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.sms-bubble:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.7);
}

.sms-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.sms-sender {
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sms-sender svg {
    width: 12px;
    height: 12px;
    fill: var(--color-brand);
}

.sms-time {
    color: var(--color-text-darker);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sms-time svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

.sms-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #cbd5e1;
    background: rgba(5, 7, 12, 0.4);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    user-select: text;
    white-space: pre-wrap;
    word-break: break-all;
}

/* OTP extraction banner */
.otp-extraction-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 8px 12px;
    border-radius: 10px;
}

.otp-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a5b4fc;
    display: flex;
    align-items: center;
    gap: 6px;
}

.otp-title-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #818cf8;
    animation: pulse 1.5s infinite;
}

.otp-copy-btn {
    background: var(--color-brand);
    color: white;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
    transition: all 0.15s ease;
}

.otp-copy-btn:hover {
    background: var(--color-brand-hover);
    transform: translateY(-0.5px);
}

.otp-copy-btn:active {
    transform: scale(0.97);
}

.otp-copy-btn svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

/* Styled HTML tables inside sms viewport */
.styled-html-table table {
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border-collapse: collapse;
}

.styled-html-table th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px;
    text-align: left;
    color: var(--color-text-muted);
}

.styled-html-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 10px 8px;
    color: #cbd5e1;
}

/* Toast container */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
    width: 100%;
}

.toast {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--color-brand);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.toast-success { border-left-color: var(--color-valid); }
.toast.toast-warning { border-left-color: var(--color-warning); }
.toast.toast-error { border-left-color: var(--color-invalid); }

.toast-body {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.toast-body svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.toast-success .toast-body svg { fill: var(--color-valid); }
.toast-warning .toast-body svg { fill: var(--color-warning); }
.toast-error .toast-body svg { fill: var(--color-invalid); }
.toast-info .toast-body svg { fill: var(--color-brand); }

.toast-close {
    background: transparent;
    border: none;
    color: var(--color-text-darker);
    cursor: pointer;
}

.toast-close:hover {
    color: var(--color-text-muted);
}

.toast-close svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .5;
        transform: scale(0.9);
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
