/* ==========================================================
   one2zero UI
   Shared Application Styles
   ========================================================== */
/* ==========================================================
   Theme
   ========================================================== */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-light: #64748b;
    --border: #dbe3ec;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(15, 23, 42, .08);
    --transition: .2s ease;
    --container-width: 760px;
    --font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}
[data-theme="dark"] {
    --background: #0f172a;
    --surface: #1e293b;
    --text: #f8fafc;
    --text-light: #94a3b8;
    --border: #334155;
    --shadow: 0 10px 28px rgba(0,0,0,.35);
}
/* ==========================================================
   Reset / Base
   ========================================================== */
html {
    font-size: 16px;
}
body {
    margin: 0;
    font-family: var(--font-family);
    background: var(--background);
    color: var(--text);
    transition:
        background var(--transition),
        color var(--transition);
}
main {
    padding: 48px 20px;
}
.container {
    width: min(var(--container-width), 100%);
    margin: 0 auto;
}
/* ==========================================================
   Typography
   ========================================================== */
h1,
h2,
h3 {
    color: var(--text);
}
h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0 0 12px;
}
h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 16px;
}
h3 {
    font-size: 1.15rem;
    font-weight: 600;
}
p {
    color: var(--text-light);
    line-height: 1.6;
}
/* ==========================================================
   Links
   ========================================================== */
a {
    color: var(--primary);
    transition: color var(--transition);
}
a:hover {
    color: var(--primary-hover);
}
/* ==========================================================
   Buttons
   ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 0 22px;
    border-radius: var(--radius);
    border: none;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}
.btn:hover {
    transform: translateY(-1px);
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-hover);
}
.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    box-shadow: var(--shadow);
}
.btn-danger {
    background: var(--danger);
    color: white;
}
.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}
.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}
.btn-logout {
    background: #475569;
    color: white;
}
.btn-logout:hover {
    background: #334155;
}
/* ==========================================================
   Inputs
   ========================================================== */
.input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    transition:
        border var(--transition),
        box-shadow var(--transition);
}
.input::placeholder {
    color: var(--text-light);
}
.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow:
        0 0 0 3px rgba(37,99,235,.15);
}
/* ==========================================================
   Form
   ========================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.form-group label {
    font-weight: 600;
    color: var(--text);
}
.settings-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
/* ==========================================================
   Cards
   ========================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
/* ==========================================================
   Notifications / Flash Messages
   ========================================================== */
.notifications {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(420px, calc(100vw - 48px));
}
.alert {
    margin: 0;
    padding: 16px 20px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    line-height: 1.5;
}
.notifications .alert {
    opacity: 0;
    transform: translateY(-15px);
    transition:
        opacity .3s ease,
        transform .3s ease;
    will-change: opacity, transform;
}
.notifications .alert.show {
    opacity: 1;
    transform: translateY(0);
}
.alert-success {
    border-left-color: var(--success);
}
.alert-warning {
    border-left-color: var(--warning);
}
.alert-error {
    border-left-color: var(--danger);
}
.alert-info {
    border-left-color: var(--primary);
}
/* ==========================================================
   Theme Toggle
   ========================================================== */
.theme-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}
.theme-toggle:hover {
    transform: translateY(-2px);
}
/* ==========================================================
   Utilities
   ========================================================== */
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.hidden {
    display: none !important;
}
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
/* ==========================================================
   Error Pages
   ========================================================== */
.error-page {
    min-height: calc(100vh - 96px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.error-card {
    width: min(100%, 560px);
    padding: 48px 40px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.error-code {
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -4px;
}
.error-card h1 {
    margin-bottom: 12px;
}
.error-card p {
    max-width: 420px;
    margin: 0 auto 32px;
}
.error-card .btn {
    width: auto;
}
/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 768px) {
    main {
        padding: 32px 16px;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.35rem;
    }
    .btn {
        width: 100%;
    }
    .notifications {
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
    .error-card {
        padding: 36px 24px;
    }
    .error-code {
        font-size: 4.5rem;
    }
    .error-card .btn {
        width: 100%;
    }
}
