/* --- ResumeX Shared Design Tokens (theme.css) --- */
:root {
    --primary: #9A7EB4;
    --primary-light: rgba(154, 126, 180, 0.08);
    --primary-dark: #533565;
    --accent: #533565;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 12px 30px -10px rgba(154, 126, 180, 0.15);
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03);
    --border-color: #e2e8f0;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: float 25s infinite alternate ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 80px) scale(1.15); }
}

/* Shared Glassmorphic Nav */
.glass-nav {
    padding: 1.2rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

/* Shared Button Styles */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px rgba(37, 99, 235, 0.25);
}

.btn-outline {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-full { width: 100%; }

/* Badge */
.badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 300px;
    max-width: 420px;
    animation: toastSlideIn 0.3s ease;
    transition: all 0.3s ease;
}

.toast.error { border-left-color: #ef4444; }
.toast.success { border-left-color: #10b981; }
.toast.warning { border-left-color: #f59e0b; }

.toast.removing {
    opacity: 0;
    transform: translateX(40px);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 4px;
}

.toast-close:hover { color: #ef4444; }

/* Confirm Modal */
.confirm-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.confirm-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.confirm-card h3 { margin-bottom: 0.5rem; }
.confirm-card p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-actions .btn-cancel {
    background: var(--bg-light);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    border: none;
}

.confirm-actions .btn-danger {
    background: #ef4444;
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    border: none;
    transition: background 0.2s;
}

.confirm-actions .btn-danger:hover { background: #dc2626; }

/* ── Mobile Toast / Confirm adjustments (max 540px) ──────────────── */
@media (max-width: 540px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 12px;
        left: 12px;
    }

    .toast {
        min-width: 0;
        max-width: 100%;
        font-size: 0.85rem;
        padding: 0.85rem 1rem;
    }

    .confirm-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .confirm-actions { flex-direction: column; }
    .confirm-actions .btn-cancel,
    .confirm-actions .btn-danger {
        width: 100%;
        padding: 12px;
    }
}
