/* Advanced Color Converter CSS Theme Structure */
.acc-wrapper * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.acc-wrapper {
    background-color: #F2F4F5;
    padding: 20px;
    border-radius: 12px;
    color: #1A1D20;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Header Config */
.acc-header {
    background-color: #39FF14;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(57, 255, 20, 0.2);
}

.acc-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1A1D20 !important;
}

/* Grid Containers Layout */
.acc-container {
    display: block;
}

.acc-control-panel {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #E8EBEF;
}

.acc-picker-box {
    margin-bottom: 15px;
}

.acc-picker-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.acc-picker-row {
    display: table;
    width: 100%;
}

.acc-picker-row input[type="color"] {
    display: table-cell;
    width: 60px;
    height: 42px;
    padding: 0;
    border: 1px solid #E8EBEF;
    border-radius: 6px;
    cursor: pointer;
    vertical-align: middle;
}

.acc-hex-input {
    display: table-cell;
    width: calc(100% - 70px);
    padding-left: 10px;
    vertical-align: middle;
}

.acc-input-field {
    width: 100%;
    height: 42px;
    border: 1px solid #E8EBEF;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 15px;
    background-color: #FAFAFA;
    color: #1A1D20;
    font-family: monospace;
}

.acc-preview-card {
    height: 80px;
    border-radius: 6px;
    display: block;
    text-align: center;
    line-height: 80px;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Button Styling */
.acc-btn {
    background-color: #39FF14;
    color: #1A1D20;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    transition: background 0.2s ease;
    text-align: center;
}

.acc-btn:hover {
    background-color: #2ecc10;
}

/* Conversions Grid Layout */
.acc-conversions-grid {
    margin-bottom: 20px;
}

.acc-conv-block {
    background: #FFFFFF;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #E8EBEF;
}

.acc-block-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.acc-input-group {
    display: table;
    width: 100%;
}

.acc-input-group .acc-input-field {
    display: table-cell;
    width: calc(100% - 80px);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.acc-copy-btn {
    display: table-cell;
    width: 80px;
    height: 42px;
    background-color: #39FF14;
    color: #1A1D20;
    border: 1px solid #39FF14;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    vertical-align: middle;
}

.acc-copy-btn:hover {
    background-color: #2ecc10;
}

/* Panels */
.acc-panel-card {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #E8EBEF;
}

.acc-panel-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    border-left: 4px solid #39FF14;
    padding-left: 8px;
}

.acc-contrast-row {
    display: block;
}

.acc-contrast-item {
    padding: 12px;
    border-radius: 6px;
    background: #FAFAFA;
    margin-bottom: 10px;
    font-size: 14px;
    border: 1px solid #E8EBEF;
}

.acc-contrast-item strong {
    font-size: 16px;
    margin-left: 5px;
    margin-right: 10px;
}

.acc-badge {
    float: right;
    padding: 2px 8px;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
}

.acc-badge.pass { background-color: #d4edda; color: #155724; }
.acc-badge.fail { background-color: #f8d7da; color: #721c24; }

/* Harmonies List */
.acc-harmonies-list {
    display: block;
}

.acc-harmony-item {
    display: inline-block;
    width: 18%;
    margin-right: 2%;
    margin-bottom: 10px;
    text-align: center;
}

.acc-harmony-swatch {
    height: 40px;
    border-radius: 4px;
    margin-bottom: 4px;
    border: 1px solid rgba(0,0,0,0.05);
}

.acc-harmony-label {
    font-size: 10px;
    font-family: monospace;
}

/* History Log */
.acc-history-list {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
}

.acc-history-swatch {
    display: inline-block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
    cursor: pointer;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.acc-history-swatch:hover {
    transform: scale(1.15);
}

.acc-empty-text {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

/* Responsive Fluid Breakpoints */
@media (min-width: 768px) {
    .acc-conversions-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .acc-conv-block { margin-bottom: 0; }
    .acc-advanced-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (min-width: 1024px) {
    .acc-conversions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
