/* Consistency Calculator */

.cc-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Card container */
.cc-card {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 24px;
}

/* Grid layouts */
.cc-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* Field */
.cc-field {
    margin-bottom: 4px;
}

.cc-label {
    display: block;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cc-label-hint {
    font-weight: 400;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

.cc-hint {
    color: rgba(255,255,255,0.35);
    font-size: 11px;
    margin-top: 4px;
    margin-bottom: 0;
}

/* Input with prefix/suffix */
.cc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cc-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.cc-input:focus {
    outline: none;
    border-color: #7A95F8;
    background: rgba(255,255,255,0.1);
}

.cc-input-prefix {
    position: absolute;
    left: 12px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.cc-input-suffix {
    position: absolute;
    right: 12px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    pointer-events: none;
}

.cc-input-wrap .cc-input-prefix + .cc-input {
    padding-left: 28px;
}

.cc-input-wrap .cc-input:has(~ .cc-input-suffix) {
    padding-right: 28px;
}

/* Preset pills */
.cc-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.cc-preset {
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.cc-preset:hover {
    border-color: #7A95F8;
    color: #fff;
    background: rgba(122,149,248,0.15);
}

/* Entry header */
.cc-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cc-entry-actions {
    display: flex;
    gap: 8px;
}

.cc-btn-add, .cc-btn-clear {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    border: none;
}

.cc-btn-add {
    background: rgba(122,149,248,0.2);
    color: #7A95F8;
}

.cc-btn-add:hover {
    background: rgba(122,149,248,0.35);
    color: #fff;
}

.cc-btn-clear {
    background: rgba(239,68,68,0.15);
    color: rgba(239,68,68,0.8);
}

.cc-btn-clear:hover {
    background: rgba(239,68,68,0.3);
    color: #ef4444;
}

/* Days grid */
.cc-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.cc-day-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 6px 8px 6px 12px;
    transition: background 0.2s;
}

.cc-day-item:hover {
    background: rgba(255,255,255,0.08);
}

.cc-day-num {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 38px;
}

.cc-day-item .cc-input-wrap {
    flex: 1;
}

.cc-day-item .cc-input {
    padding: 6px 8px 6px 24px;
    font-size: 14px;
    border-width: 1px;
}

.cc-day-remove {
    background: none;
    border: none;
    color: rgba(255,255,255,0.25);
    cursor: pointer;
    padding: 4px;
    font-size: 12px;
    transition: color 0.2s;
    line-height: 1;
}

.cc-day-remove:hover {
    color: #ef4444;
}

/* Quick add row */
.cc-quick-add {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Verdict banner */
.cc-verdict {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 12px;
    transition: all 0.3s;
}

.cc-verdict-pass {
    background: rgba(34,197,94,0.12);
    border: 2px solid rgba(34,197,94,0.3);
}

.cc-verdict-fail {
    background: rgba(239,68,68,0.12);
    border: 2px solid rgba(239,68,68,0.3);
}

.cc-verdict-warn {
    background: rgba(251,191,36,0.12);
    border: 2px solid rgba(251,191,36,0.3);
}

.cc-verdict-icon {
    font-size: 36px;
    line-height: 1;
}

.cc-verdict-pass .cc-verdict-icon { color: #22c55e; }
.cc-verdict-fail .cc-verdict-icon { color: #ef4444; }
.cc-verdict-warn .cc-verdict-icon { color: #fbbf24; }

.cc-verdict-text h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}

.cc-verdict-text p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 0;
}

/* Metric cards */
.cc-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cc-metric-card {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    transition: transform 0.2s, background 0.2s;
}

.cc-metric-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.1);
}

.cc-metric-value {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.cc-metric-label {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 500;
}

/* Section title */
.cc-section-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Chart */
.cc-chart-wrap {
    position: relative;
    height: 250px;
}

/* Table */
.cc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cc-table th {
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}

.cc-table td {
    color: rgba(255,255,255,0.85);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cc-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

.cc-row-flagged td {
    background: rgba(239,68,68,0.06) !important;
}

.cc-positive { color: #22c55e !important; }
.cc-negative { color: #ef4444 !important; }
.cc-flagged-text { color: #ef4444 !important; font-weight: 600; }

.cc-badge-pass, .cc-badge-fail, .cc-badge-loss {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.cc-badge-pass {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}

.cc-badge-fail {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

.cc-badge-loss {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
}

/* Suggestions */
.cc-suggestions {
    background: rgba(251,191,36,0.08);
    border: 1px solid rgba(251,191,36,0.2);
    border-radius: 12px;
    padding: 20px 24px;
}

.cc-suggestions .cc-section-title {
    color: #fbbf24;
    font-size: 16px;
}

.cc-suggestion-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.cc-suggestion-list li {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    padding: 8px 0 8px 24px;
    position: relative;
}

.cc-suggestion-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #fbbf24;
}

/* Explainer */
.cc-explainer {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 24px;
}

.cc-explainer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.cc-explainer-item {
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 16px;
}

.cc-explainer-name {
    color: #7A95F8;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cc-explainer-name i {
    margin-right: 6px;
}

.cc-explainer-item p {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* CTA */
.cc-cta {
    text-align: center;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 24px;
}

.cc-cta-text {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    margin-bottom: 16px;
}

.cc-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cc-cta-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.cc-cta-primary {
    background: linear-gradient(100deg, #7A95F8 0%, #6453CA 100%);
    color: #fff;
}

.cc-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(122,149,248,0.3);
    color: #fff;
    text-decoration: none;
}

.cc-cta-secondary {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

.cc-cta-secondary:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .cc-grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cc-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cc-explainer-grid {
        grid-template-columns: 1fr;
    }
    .cc-days-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cc-entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .cc-verdict {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    .cc-verdict-icon {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .cc-days-grid {
        grid-template-columns: 1fr;
    }
    .cc-metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cc-table {
        font-size: 12px;
    }
    .cc-table th, .cc-table td {
        padding: 8px 6px;
    }
    .cc-card {
        padding: 16px;
    }
}
