body {
    background-color: #fcfcfc;
    color: #1a1a1a;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background: #111;
    color: #fff;
    padding: 25px 40px;
    text-align: center;
    letter-spacing: 3px;
}

header h1 {
    margin: 0;
    font-weight: 300;
    font-size: 1.1rem;
    text-transform: uppercase;
}

main {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 30px;
}

.pantone-section {
    margin-bottom: 60px;
}

.intro {
    margin-bottom: 30px;
}

.intro h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: #111;
}

.intro p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.results-section {
    margin-top: 60px;
}

.pantone-selector-container {
    margin: 40px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    width: 100%;
    padding: 20px 24px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #111;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 64px;
}

.dropdown-trigger:hover {
    border-color: #111;
    background-color: #fafafa;
}

.trigger-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.color-swatch-preview {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    display: none;
}

.trigger-text {
    flex: 1;
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: #666;
    transition: transform 0.3s ease;
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow: hidden;
    display: none;
    z-index: 1000;
}

.dropdown-menu.open {
    display: flex;
    flex-direction: column;
}

.dropdown-search {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.dropdown-search input {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.dropdown-search input:focus {
    border-color: #111;
}

.dropdown-options {
    overflow-y: auto;
    max-height: 400px;
}

.dropdown-section {
    padding: 8px 0;
}

.dropdown-section-header {
    padding: 12px 16px 12px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    background-color: #f8f8f8;
    letter-spacing: 0.5px;
}

.dropdown-options-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    padding: 8px;
}

.dropdown-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.dropdown-option:hover {
    background-color: #f8f8f8;
    border-color: #ddd;
}

.option-swatch {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.option-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.option-code {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111;
}

.option-undertone {
    font-size: 0.8rem;
    color: #666;
}

aside h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: #666;
}

.control-group {
    margin-bottom: 35px;
}

.control-group textarea {
    width: 100%;
    min-height: 64px;
    resize: vertical;
    padding: 8px;
    font-size: 0.85rem;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
}

.control-group button {
    background: #111;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}
.control-group button:active { transform: translateY(1px); }

.control-group label {
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.control-group input[type="range"] {
    width: 100%;
    height: 4px;
    appearance: none;
    border-radius: 2px;
}

#hueSlider {
    /* Visual: cool (rosy) -> warm (golden) */
    background: linear-gradient(to right, #ffd6d0 0%, #ffecd6 35%, #ffe6c2 65%, #ffddb3 100%);
}

#valueSlider {
    background: linear-gradient(to right, #4b2e2a 0%, #8f6b57 40%, #f3e6dd 100%);
}

#chromaSlider {
    /* Muted -> More vivid (helping user avoid 'neon' extremes visually) */
    background: linear-gradient(to right, #e6ddd3 0%, #d6bfa8 45%, #f2a77a 100%);
}

.control-group .range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #999;
    margin-top: 8px;
}


.preview-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #efefef;
}

#colorPreview {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

#seasonTag {
    font-size: 0.65rem;
    background: #000;
    color: #fff;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#seasonName {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 400;
    color: #111;
}

#description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 10px;
}

h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

#rgbGrid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.swatch-box {
    height: 56px;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.04);
}
.swatch-label {
    font-size: 0.64rem;
    color: #444;
    text-align: center;
    padding: 2px 4px;
}

/* Pantone SkinTone Guide Styles */
#pantoneGrid {
    margin-top: 20px;
}

.pantone-depth-section {
    margin-bottom: 40px;
}

.pantone-depth-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: 600;
}

.pantone-tone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.pantone-tone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 4px;
    padding: 8px;
}

.pantone-tone-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #f9f9f9;
}

.pantone-swatch {
    width: 100%;
    height: 60px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
    margin-bottom: 6px;
}

.pantone-label {
    font-size: 0.6rem;
    color: #555;
    text-align: center;
    font-weight: 500;
    word-break: break-all;
}

#pantoneInfo {
    margin-bottom: 20px;
}

.pantone-code {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

.pantone-details {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.pantone-details div {
    margin-bottom: 4px;
}

