:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --print-bg: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px 0;
    text-align: center;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: var(--primary);
    color: white;
    padding: 15px 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.event-warning {
    background-color: #fef9e7;
    border-left: 4px solid var(--warning);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.event-warning i {
    color: var(--warning);
    font-size: 1.5rem;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.product-table th {
    background-color: var(--light);
    padding: 12px 15px;
    text-align: left;
}

.product-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.product-table input, .product-table select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-danger {
    background-color: var(--accent);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #219653;
}

.icon-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    background-color: var(--light);
    border-radius: 8px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-upload {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.image-upload:hover {
    border-color: var(--secondary);
    background-color: #f0f8ff;
}

.image-upload i {
    font-size: 3rem;
    color: #bbb;
    margin-bottom: 15px;
}

.image-preview {
    max-width: 100%;
    max-height: 300px;
    margin-top: 20px;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.total-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--success);
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.color-preview {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

.sublimation-color {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions .btn {
        width: 100%;
    }
}

        /* Versão de impressão minimalista - inicialmente oculta */
        #print-version {
            display: none;
        }
        
        @media print {
            /* Esconde a versão normal */
            #normal-version {
                display: none;
            }
            
            /* Mostra a versão de impressão */
            #print-version {
                display: block;
                font-family: Arial, sans-serif;
                font-size: 10pt;
                padding: 10mm;
            }
            
            .print-header {
                text-align: center;
                margin-bottom: 5mm;
                border-bottom: 2px solid #000;
                padding-bottom: 2mm;
            }
            
            .print-header h1 {
                font-size: 14pt;
                margin: 0;
            }
            
            .print-header p {
                font-size: 10pt;
                margin: 2mm 0;
            }
            
            .print-section {
                margin-bottom: 5mm;
            }
            
            .print-section-title {
                font-weight: bold;
                border-bottom: 1px solid #000;
                padding-bottom: 1mm;
                margin-bottom: 2mm;
                font-size: 11pt;
            }
            
            .print-grid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 3mm;
            }
            
            .print-row {
                display: flex;
                margin-bottom: 1mm;
            }
            
            .print-label {
                font-weight: bold;
                min-width: 40mm;
            }
            
            .print-value {
                flex-grow: 1;
            }
            
            .print-table {
                width: 100%;
                border-collapse: collapse;
                font-size: 9pt;
                margin-top: 2mm;
            }
            
            .print-table th {
                text-align: left;
                border-bottom: 1px solid #000;
                padding: 1mm;
                font-weight: bold;
            }
            
            .print-table td {
                padding: 1mm;
                border-bottom: 1px solid #ccc;
            }
            
            .print-image-container {
                text-align: center;
                margin-top: 3mm;
            }
            
            .print-image {
                max-width: 100%;
                max-height: 80mm;
            }
            
            .print-total {
                text-align: right;
                font-weight: bold;
                margin-top: 2mm;
                font-size: 10pt;
            }
            
            .print-observations {
                margin-top: 3mm;
                padding: 2mm;
                border: 1px solid #ccc;
                font-size: 9pt;
            }
        }