/* Stili generali */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.2rem;
    text-align: center;
}

h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    margin-top: 20px;
}

h3 {
    font-size: 1.3rem;
    margin-top: 15px;
}

p {
    margin-bottom: 15px;
}

/* Header e footer */
header, footer {
    text-align: center;
    padding: 20px 0;
}

header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

footer {
    margin-top: 40px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Sezioni dell'app */
.app-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Form e input */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.primary-btn {
    background-color: #3498db;
    color: white;
}

.primary-btn:hover {
    background-color: #2980b9;
}

.secondary-btn {
    background-color: #95a5a6;
    color: white;
}

.secondary-btn:hover {
    background-color: #7f8c8d;
}

/* Risultati */
.results-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.result-item.total {
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: 2px solid #3498db;
    margin-top: 10px;
}

.result-label {
    color: #7f8c8d;
}

.result-value {
    font-weight: 500;
}

/* Visualizzazione LED Wall */
.visualization-container {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.orientation-toggle {
    text-align: center;
    margin-top: 15px;
}

/* Controlli di orientamento posizionati nel riquadro di visualizzazione */
.orientation-controls {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #f5f7fa;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #ddd;
}

.orientation-group {
    margin: 10px;
    flex: 1;
    min-width: 200px;
}

.radio-group {
    display: flex;
    flex-direction: column;
}

.radio-group label {
    margin: 5px 0;
    display: flex;
    align-items: center;
    font-weight: normal;
}

/* Preventivo */
.quote-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Feedback */
.feedback {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.feedback.info {
    background-color: #3498db;
}

.feedback.success {
    background-color: #2ecc71;
}

.feedback.error {
    background-color: #e74c3c;
}

/* Mobile navigation */
.mobile-tabs {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    border: none;
    border-top: 3px solid transparent;
}

.tab-btn.active {
    border-top-color: #3498db;
    color: #3498db;
}

/* Print styles */
@media print {
    body {
        background-color: white;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    section:not(.results-section):not(.quote-section) {
        display: none;
    }
    
    .app-container {
        display: block;
    }
    
    button, .mobile-tabs {
        display: none;
    }
    
    section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
