:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #eef2ff;
    --primary-soft: #f5f7ff;
    --bg: #f8fafc;
    --bg-subtle: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-soft: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --danger: #ef4444;
    --success: #16a34a;
    --success-soft: #f0fdf4;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.1);
    --shadow-primary: 0 8px 24px rgba(99, 102, 241, 0.25);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
}
.container-width {
    max-width: 1200px;
    margin: 0 auto;
}

.container-width-small {
    max-width: 800px;
    margin: 0 auto;
}
.global-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.global-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.global-modal-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.global-modal-overlay.active .global-modal-card {
    transform: scale(1);
}

.global-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 28px;
}

.global-modal-icon.success {
    background-color: #f0fdf4;
    color: #16a34a;
}
.global-modal-icon.error {
    background-color: #fef2f2;
    color: #dc2626;
}
.global-modal-icon.info {
    background-color: #eff6ff;
    color: #2563eb;
}

.global-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.global-modal-description {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 28px;
}

.global-modal-btn {
    background: var(--primary, #6366f1);
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease, transform 0.1s ease;
}

.global-modal-btn:hover {
    background: var(--primary-hover, #4f46e5);
}

.global-modal-btn:active {
    transform: scale(0.98);
}
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast-message {
    background: #1e293b;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
    min-width: 280px;
    max-width: 400px;
    animation: toastIn 0.3s ease forwards;
    transition: opacity 0.3s ease;
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
