/* -------------------------------------------------------------
   AMUNÌ TALÌA - ADMIN STYLESHEET (QR CODE PANEL)
   ------------------------------------------------------------- */

:root {
    --bg-primary: #EFECE1;        /* Tela Grezza */
    --color-primary: #486940;     /* Verde Pala */
    --color-secondary: #D36135;   /* Tangeri */
    --color-accent-blue: #8BC3E6;  /* Azzurro Cielo */
    --color-accent-yellow: #E6B822;/* Giallo Deserto */
    --text-primary: #2F3E2B;      /* Bosco Scuro */
    
    --white: #FFFFFF;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --shadow-md: 0 10px 15px -3px rgba(47, 62, 43, 0.08), 0 4px 6px -2px rgba(47, 62, 43, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(47, 62, 43, 0.12), 0 10px 10px -5px rgba(47, 62, 43, 0.06);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.5rem;
}

.admin-container {
    width: 100%;
    max-width: 500px;
}

.admin-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.admin-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

.admin-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
}

.admin-subtitle {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Admin Card Container */
.admin-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 2rem;
}

/* Form Styles */
.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-form input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.admin-form input:focus {
    border-color: var(--color-secondary);
    background-color: var(--white);
}

.form-help {
    display: block;
    font-size: 0.8rem;
    opacity: 0.65;
    margin-top: 0.4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: #3b5634;
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

/* Alert Boxes */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
}

.alert-danger {
    background-color: rgba(211, 97, 53, 0.15);
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
}

.alert-success {
    background-color: rgba(72, 105, 64, 0.15);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.btn-logout {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.6rem;
    border: 1px dashed var(--color-secondary);
    border-radius: 4px;
}

.btn-logout:hover {
    background-color: var(--color-secondary);
    color: var(--white);
}

.current-url-box {
    background-color: var(--bg-primary);
    border-left: 4px solid var(--color-accent-yellow);
    padding: 1.2rem;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin-bottom: 2rem;
}

.url-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.3rem;
}

.url-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    word-break: break-all;
}

.url-value:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* QR Code Section Info */
.qr-info-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(47, 62, 43, 0.1);
}

.qr-info-section h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.qr-info-section p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.8rem;
}

.code-display {
    background-color: #2F3E2B;
    color: #EFECE1;
    padding: 0.8rem;
    border-radius: var(--border-radius-sm);
    font-family: monospace;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 0.8rem;
}

/* Footer */
.admin-footer {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

.admin-footer p {
    margin-bottom: 0.5rem;
}

.back-link {
    font-weight: 700;
    color: var(--color-primary);
}

.back-link:hover {
    text-decoration: underline;
    color: var(--color-secondary);
}

.text-muted {
    opacity: 0.6;
}
.small {
    font-size: 0.75rem;
}
code {
    background-color: var(--bg-primary);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.85rem;
}
