/* CSS Variables for uniform theme configuration */
:root {
    --cnf-bg-light: #f4f4f4;
    --cnf-bg-card: #ffffff;
    --cnf-text-dark: #222222;
    --cnf-text-muted: #666666;
    --cnf-neon-green: #39FF14;
    --cnf-neon-green-hover: #32e612;
    --cnf-border: #e0e0e0;
}

.cnf-container *, .cnf-container *::before, .cnf-container *::after {
    box-sizing: border-box;
}

/* Full screen responsive container layout */
.cnf-container {
    background-color: var(--cnf-bg-light);
    color: var(--cnf-text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 0;
    margin: 20px auto;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Header Bar style styling */
.cnf-header {
    background-color: var(--cnf-bg-card);
    border-bottom: 2px solid var(--cnf-border);
    padding: 20px;
    text-align: center;
}

.cnf-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--cnf-text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Workspace Grid */
.cnf-workspace {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.cnf-panel {
    display: table-cell;
    vertical-align: top;
    padding: 25px;
    width: 50%;
}

.cnf-input-panel {
    border-right: 1px solid var(--cnf-border);
}

/* Fallback/Modern responsiveness layout rules overrides via CSS media query */
@media screen and (max-width: 768px) {
    .cnf-workspace {
        display: block;
    }
    .cnf-panel {
        display: block;
        width: 100%;
        border-right: none;
    }
    .cnf-input-panel {
        border-bottom: 1px solid var(--cnf-border);
    }
}

/* UI Cards configuration */
.cnf-card {
    background: var(--cnf-bg-card);
    border: 1px solid var(--cnf-border);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.cnf-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid var(--cnf-bg-light);
    padding-bottom: 8px;
}

/* Form Layout Components */
.cnf-input-group {
    margin-bottom: 15px;
}

.cnf-input-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.cnf-picker-wrapper {
    height: 60px;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--cnf-border);
}

input[type="color"]#cnf-picker {
    border: none;
    width: 110%;
    height: 110%;
    transform: translate(-5%, -5%);
    cursor: pointer;
}

input[type="text"]#cnf-text-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--cnf-border);
    border-radius: 4px;
    color: var(--cnf-text-dark);
    background-color: var(--cnf-bg-light);
}

input[type="text"]#cnf-text-input:focus {
    outline: 2px solid var(--cnf-text-dark);
}

.cnf-error-msg {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* Table Output Styling */
.cnf-table {
    width: 100%;
    border-collapse: collapse;
}

.cnf-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--cnf-bg-light);
    font-size: 14px;
}

.cnf-table tr:last-child td {
    border-bottom: none;
}

.cnf-highlight-text {
    font-weight: 700;
    font-size: 16px;
}

.cnf-table code {
    background: var(--cnf-bg-light);
    padding: 4px 8px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
}

/* Action Buttons Design */
.cnf-actions {
    display: table;
    width: 100%;
}

.cnf-btn {
    display: inline-block;
    width: 48%;
    background-color: var(--cnf-neon-green);
    color: var(--cnf-text-dark);
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.cnf-btn:first-child {
    float: left;
}

.cnf-btn:last-child {
    float: right;
}

.cnf-btn:hover {
    background-color: var(--cnf-neon-green-hover);
}

.cnf-btn:active {
    transform: scale(0.98);
}

/* Harmonies & Variations Swatches */
.cnf-harmony-section {
    margin-bottom: 12px;
}

.cnf-harmony-section h4 {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: var(--cnf-text-muted);
    text-transform: uppercase;
}

.cnf-harmony-row {
    display: block;
    width: 100%;
    overflow: hidden;
}

.cnf-swatch {
    float: left;
    height: 40px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: transform 0.1s ease;
}

.cnf-swatch:hover {
    transform: scale(1.05);
    z-index: 2;
}

.cnf-swatch-label {
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 100%;
    font-size: 10px;
    color: var(--cnf-text-muted);
    white-space: nowrap;
    overflow: hidden;
}

/* Contrast Accessibility Blocks */
.cnf-contrast-grid {
    display: block;
    width: 100%;
}

.cnf-contrast-box {
    float: left;
    width: 48%;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--cnf-border);
}

.cnf-contrast-box:first-child {
    margin-right: 4%;
}

.cnf-contrast-text {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.cnf-score-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,0.8);
    color: #222;
}
