/* --- Global Theme & Space Aesthetic --- */
:root {
    --bg-dark: #05070a;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --cyan-primary: #06b6d4;
    --pink-primary: #ec4899;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    overflow: hidden; /* Prevents bounce scrolling on the wall display */
    user-select: none; /* Prevents accidental text highlighting on touch */
    -webkit-tap-highlight-color: transparent;
}

/* --- Layout Components --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- FullCalendar Customization --- */
/* Making the calendar blend into the space theme */
.fc {
    --fc-border-color: rgba(255, 255, 255, 0.05);
    --fc-button-bg-color: #1e293b;
    --fc-button-border-color: transparent;
    --fc-button-active-bg-color: var(--cyan-primary);
    --fc-today-adornment-color: var(--cyan-primary);
}

.fc-theme-standard th {
    background: rgba(30, 41, 59, 0.3);
    padding: 12px 0 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.fc-v-event {
    border: none !important;
    padding: 2px 4px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.fc-timegrid-slot {
    height: 4rem !important; /* Larger slots for easier finger-tapping */
}

/* --- Tasks & Chores --- */
.task-item {
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.task-item:active {
    transform: scale(0.97); /* Haptic-like visual feedback */
}

input[type="checkbox"] {
    appearance: none;
    background-color: transparent;
    margin: 0;
    font: inherit;
    color: var(--cyan-primary);
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid #334155;
    border-radius: 0.75rem;
    display: grid;
    place-content: center;
    cursor: pointer;
}

input[type="checkbox"]::before {
    content: "";
    width: 1.25rem;
    height: 1.25rem;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--cyan-primary);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

input[type="checkbox"]:checked {
    border-color: var(--cyan-primary);
}

/* --- Navigation Buttons --- */
.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-btn.active {
    background-color: var(--cyan-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* --- Animations --- */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.updated-flash {
    animation: pulse-glow 0.6s ease-out;
}

/* --- Scrollbar Styling (Minimalist) --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}