:root {
    --primary-color: #007bff; /* Esempio: Blu standard */
    --bg-color: #f8f9fa;
    --text-color: #333;
    --header-height: 60px;
    --nav-height: 60px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* Rimuove highlight al tocco su mobile */
    overscroll-behavior-y: none; /* Previene scroll "elastico" indesiderato su refresh */
}

/* App Layout */
.app-container {
    padding-top: var(--header-height);
    padding-bottom: var(--nav-height);
    min-height: 100vh;
    box-sizing: border-box;
}

/* Header Fisso */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 1000;
}

.app-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* Bottom Nav Fisso */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #ddd;
    z-index: 1000;
}

.nav-item {
    color: #6c757d;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* Utilities per Mobile */
.card-item {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin: 10px 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.1s;
    cursor: pointer;
}

.card-item:active {
    transform: scale(0.98);
}

/* Floating Action Button (es. nuovo post) */
.fab {
    position: fixed;
    bottom: calc(var(--nav-height) + 20px);
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    font-size: 1.5rem;
    z-index: 999;
}

/* Forms */
.auth-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: #fff;
}

.form-control-custom {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #ced4da;
    width: 100%;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.btn-custom {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.btn-custom:hover {
    opacity: 0.9;
}
