@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    min-height: 100vh;
}

.topbar {
    padding: 20px 30px;
    font-size: 24px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.card-header h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.email {
    opacity: 0.9;
    margin: 12px 0;
}

.actions { margin-top: 16px; }

.btn-danger {
    background: #ff5252;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-danger:hover { background: #ff1744; }

.btn-primary {
    background: #00e676;
    color: black;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
}

.btn-primary:hover { background: #00c853; transform: scale(1.05); }

.badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-published { background: #00e676; color: black; }
.badge-draft { background: #ffa726; color: black; }
.badge-archived { background: #90a4ae; color: white; }

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255,255,255,0.2);
    border-top: 6px solid #00e676;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 9999;
}

.hidden { display: none !important; }

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10000;
}

.toast.show { 
    opacity: 1; 
    transform: translateX(-50%) translateY(-10px); 
}

.toast-success { background: #00e676; color: black; }
.toast-error { background: #ff5252; color: white; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 16px;
}

.stat-card h2 {
    font-size: 48px;
    margin-bottom: 8px;
}