/* Tema chiaro (default) */
:root {
    /* Background */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f5f5f7;
    --color-bg-surface: #ffffff;
    --color-bg-card: #ffffff;

    /* Testi */
    --color-text-primary: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-text-muted: #a1a1a6; 
    --color-text-inverse: #ffffff;

    /* Buttons */
    --button-padding: 10px;
    --button-padding-icon: 5px;
    --button-border-radius: 8px;
    --button-font-weight: 500;

    /* Menu */
    --menu-border-radius: 13px;
    --menu-padding: 5px;
    --menu-items-gap: 5px;

    /* Dashboard */

    /* Bordi */
    --color-border-light: #d2d2d7;
    --color-border-dark: #86868b;

    /* Layout */
    --navbar-height: 64px;

    /* Icons */
    --size-icon: 1.5rem;

    /* Accent */
    --color-accent: #007aff;
    --color-accent-hover: #005ecb;
    --color-accent-active: #004bb5;

    /* Stati */
    --color-success: #34c759;
    --color-warning: #ff9500;
    --color-error: #ff3b30;
    --color-info: #5ac8fa;

    /* Ombre */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.15);

    /* Page */
    --default-page-padding: 12px;
}

/* Tema scuro */
[data-theme="dark"] {
    /* Background */
    --color-bg-primary: #000000 !important;
    --color-bg-secondary: #1c1c1e !important;
    --color-bg-surface: #1d1d1f !important;
    --color-bg-card: #2c2c2e !important;

    /* Testi */
    --color-text-primary: #f5f5f7 !important;
    --color-text-secondary: #c9c9cc !important;
    --color-text-muted: #6e6e73 !important;
    --color-text-inverse: #000000 !important;

    /* Bordi */
    --color-border-light: #3a3a3c !important;
    --color-border-dark: #636366 !important;

    /* Accent */
    --color-accent: #0a84ff !important;
    --color-accent-hover: #0060df !important;
    --color-accent-active: #0040a3 !important;

    /* Stati */
    --color-success: #30d158 !important;
    --color-warning: #ff9f0a !important;
    --color-error: #ff453a !important;
    --color-info: #64d2ff !important;

    /* Ombre (più soft) */
    --shadow-sm: 0 1px 2px rgba(255,255,255,0.05) !important;
    --shadow-md: 0 4px 6px rgba(255,255,255,0.08) !important;
    --shadow-lg: 0 10px 15px rgba(255,255,255,0.12) !important;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > nav {
    flex: 0 0 auto;
}

.content {
    flex: 1 0 auto;
    min-height: calc(100vh - var(--navbar-height));
    padding-bottom: var(--default-page-padding);
}

p {
    padding: 0px;
    margin: 0px;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li.no-bullet {
    list-style-type: none;
}

i {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    width: var(--size-icon);
    height: var(--size-icon);
}
