/* Tudu Design System - 10/10 Reboot (Refined) */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
    /* --- Palette --- */
    --color-bg-base: #fdfbf7;
    /* Warmer, paper-like off-white */

    --color-text-main: #1f2937;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;

    --color-primary: #e11d48;
    /* Redish tone */
    --color-primary-soft: #ffe4e6;

    --color-box-bg: rgba(255, 255, 255, 0.95);
    --color-box-border: rgba(0, 0, 0, 0.04);
    --color-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);

    /* --- Spacing --- */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-box: 24px;

    /* --- Typography --- */
    --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-base);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --- The "Plaid" Background --- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    /* Very subtle gradient */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(240, 240, 245, 0.4) 100%);

    /* The Plaid Grid Pattern */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: center top;
}

/* --- The Responsive App Container --- */
.app-container {
    width: 100%;
    height: 100%;
    background: var(--color-box-bg);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Desktop: Full Width Floating Box */
@media (min-width: 1024px) {
    body {
        padding: 24px;
    }

    .app-container {
        height: 100%;
        max-width: 100%;
        border-radius: var(--radius-box);
        box-shadow: var(--color-box-shadow);
        border: 1px solid var(--color-box-border);
    }
}

/* --- Utilities --- */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.text-muted {
    color: var(--color-text-muted);
}

.font-bold {
    font-weight: 700;
}

.icon {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}

/* --- Components --- */
.btn {
    border: none;
    background: var(--color-primary);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn:hover {
    opacity: 0.9;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-main);
}