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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.season-selector {
    text-align: center;
    margin-bottom: 30px;
}

.season-selector label {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.season-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.season-btn {
    padding: 12px 24px;
    border: 2px solid #ddd;
    background-color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.season-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.season-btn.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Cores de fundo para cada estação */
.season-primavera {
    background: linear-gradient(135deg, #FFB6C1, #98FB98);
}

.season-verao {
    background: linear-gradient(135deg, #87CEEB, #F0E68C);
}

.season-outono {
    background: linear-gradient(135deg, #DEB887, #CD853F);
}

.season-inverno {
    background: linear-gradient(135deg, #B0C4DE, #E6E6FA);
}

.pdf-content {
    background-color: transparent;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: background 0.3s ease;
}

.pdf-header {
    text-align: center;
    margin-bottom: 40px;
}

.pdf-header h2 {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.pdf-subtitle {
    font-size: 1.1rem;
    color: #666;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.color-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    cursor: pointer;
    margin-bottom: 15px;
    border: 3px solid #ddd;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.color-name, .color-usage {
    width: 100%;
    max-width: 150px;
    padding: 8px;
    margin-bottom: 8px;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    text-align: center;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.color-name:focus, .color-usage:focus {
    outline: none;
    border-bottom-color: #4CAF50;
}

.color-name {
    font-weight: bold;
}

.controls {
    text-align: center;
}

.color-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.add-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.remove-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.remove-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.remove-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Modal para seleção de cor */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

#color-picker {
    width: 100px;
    height: 50px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
}

#apply-color {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

#apply-color:hover {
    background-color: #45a049;
}

/* Responsividade */
@media (max-width: 768px) {
    .color-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }
    
    .color-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .color-circle {
        width: 60px;
        height: 60px;
    }
    
    .color-name, .color-usage {
        font-size: 12px;
        padding: 6px;
        width: 100%;
        max-width: 120px;
        text-align: center;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .season-buttons {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .season-btn {
        flex: 1;
        min-width: 120px;
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .color-controls {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px;
    }
    
    .control-btn {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }
    
    .subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 10px;
    }
    
    .pdf-content {
        padding: 20px;
    }
}

/* Garantir que o PDF tenha fundo completo */
#pdf-content {
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Ajustes específicos para geração de PDF */
@media print {
    #pdf-content {
        width: 100% !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        background-attachment: fixed !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    .color-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    
    body {
        background: inherit !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}



.main-logo {
    max-width: 300px; /* Aumentado para 300px */
    height: auto;
    margin-bottom: 20px;
}

.pdf-logo {
    max-width: 250px; /* Aumentado para 250px */
    height: auto;
    margin-bottom: 15px;
}



/* Estilos para a logo em HTML/CSS no PDF */
.pdf-custom-logo {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Arial Black', 'Helvetica', sans-serif;
    color: #2c2c2c;
    position: relative;
}

.pdf-custom-logo::after {
    content: '✦';
    position: absolute;
    top: 10px;
    right: 20%;
    font-size: 2em;
    color: #2c2c2c;
    transform: rotate(15deg);
}

.pdf-custom-logo::before {
    content: '✧';
    position: absolute;
    top: 30px;
    right: 15%;
    font-size: 1.2em;
    color: #2c2c2c;
    transform: rotate(-10deg);
}

.logo-text-top {
    font-size: 3.2em;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.logo-text-middle {
    font-size: 3.5em;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.logo-color-bar {
    display: flex;
    justify-content: center;
    margin: 15px auto;
    width: 85%;
    height: 35px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo-color-bar span {
    flex-grow: 1;
    height: 100%;
}

.logo-text-bottom {
    font-size: 2.2em;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-top: 15px;
    color: #2c2c2c;
}

.main-custom-logo {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Arial Black', 'Helvetica', sans-serif;
    color: #2c2c2c;
    position: relative;
}

.main-custom-logo::after {
    content: '✦';
    position: absolute;
    top: 5px;
    right: 25%;
    font-size: 1.8em;
    color: #2c2c2c;
    transform: rotate(15deg);
}

.main-custom-logo::before {
    content: '✧';
    position: absolute;
    top: 25px;
    right: 20%;
    font-size: 1em;
    color: #2c2c2c;
    transform: rotate(-10deg);
}

.main-custom-logo .logo-text-top {
    font-size: 2.5em;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.main-custom-logo .logo-text-middle {
    font-size: 2.8em;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.main-custom-logo .logo-color-bar {
    display: flex;
    justify-content: center;
    margin: 12px auto;
    width: 70%;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.main-custom-logo .logo-color-bar span {
    flex-grow: 1;
    height: 100%;
}

.main-custom-logo .logo-text-bottom {
    font-size: 1.9em;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 12px;
    color: #2c2c2c;
}

