/* TEMPMAIL PRO - Custom Dark Theme & Glassmorphism Styling */

:root {
    --bg-dark-surface: #121824;
    --bg-dark-card: #182234;
    --bg-dark-subtle: #1e2d42;
    --primary-accent: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.25);
    --success-accent: #10b981;
    --warning-accent: #f59e0b;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #0b0f17;
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: #e2e8f0;
}

.font-monospace {
    font-family: 'JetBrains Mono', monospace;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-icon-wrapper {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    font-size: 1.25rem;
}

.card-custom {
    background-color: var(--bg-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Server Selector Styling */
.server-selector-card {
    background: rgba(18, 24, 36, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.btn-server {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-server:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-2px);
}

.btn-server.active {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: #3b82f6 !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.35);
}

.server-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email-box-wrapper {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.progress-thin {
    height: 8px;
    border-radius: 6px;
    overflow: hidden;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

.spin-slow {
    animation: spin 3s linear infinite;
    display: inline-block;
}

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

.custom-table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(59, 130, 246, 0.08);
}

.custom-table th {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.email-row {
    transition: background-color 0.2s ease;
}

.email-row:hover {
    cursor: pointer;
    background-color: rgba(59, 130, 246, 0.06);
}

.empty-icon-pulse i {
    animation: pulse-icon 2.5s infinite ease-in-out;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Modal Content Styling */
.email-body-content #modalBody {
    line-height: 1.6;
    word-break: break-word;
}

.email-body-content #modalBody a {
    color: #60a5fa;
    text-decoration: underline;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}
