/* ==========================================================================
   Color Checker Specific Styles - Pink/Purple Theme
   ========================================================================== */

/* Basis-Layout Schutz (wie im UI Checker) */
html, body {
    height: 100%;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    padding-bottom: 4rem;
    width: 100%;
    position: relative;
}

.hero.section { padding-bottom: 1.5rem !important; }
.hero-text p { margin-bottom: 1.25rem; }

/* Tool Shell & Grid */
.tool-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    margin-top: -0.5rem !important;
    position: relative;
    z-index: 10;
}

.tool-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 28px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto !important;
}

/* --- Badge & Inputs (Pink/Purple Branding) --- */
.color-badge {
    background: rgba(236, 72, 153, 0.15) !important;
    color: #f472b6 !important;
    border: 1px solid rgba(236, 72, 153, 0.3) !important;
}

.tool-label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #f8fafc;
}

.tool-textarea {
    width: 100% !important;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box !important;
    transition: all 0.25s ease;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.tool-textarea:focus {
    border-color: rgba(236, 72, 153, 0.5); /* Pinker Fokus */
    background: rgba(255, 255, 255, 0.06);
}

/* --- Buttons --- */
.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.color-btn {
    background: linear-gradient(135deg, #ec4899, #8b5cf6) !important; /* Pink zu Lila */
    border: none !important;
    color: white !important;
}

.color-btn:hover {
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.4) !important;
}

/* --- Lade-Spinner --- */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.color-spinner {
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #ec4899; /* Pinker Spinner */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.color-spinner.done {
    border: none;
    animation: none;
    width: auto;
    height: auto;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Listen & Details Area --- */
.summary-box {
    margin-top: 1.25rem;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.result-details { margin-top: 1.5rem; }

.result-details-summary {
    cursor: pointer;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.result-details-summary:hover { background: rgba(255, 255, 255, 0.1); }

.result-box-details {
    margin-top: 1rem;
    max-height: 550px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 15px;
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* --- Farb-Einträge Liste --- */
.color-entry {
    margin-bottom: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.color-entry:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

/* Das kleine Quadrat, das die Farbe zeigt */
.color-swatch {
    width: 100px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* --- Scrollbar --- */
.result-box-details::-webkit-scrollbar { width: 8px; }
.result-box-details::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 10px; }
.result-box-details::-webkit-scrollbar-thumb {
    background: rgba(236, 72, 153, 0.3);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}
.result-box-details::-webkit-scrollbar-thumb:hover { background: rgba(236, 72, 153, 0.5); }
.result-box-details { scrollbar-width: thin; scrollbar-color: rgba(236, 72, 153, 0.3) rgba(255, 255, 255, 0.02); }

@media (max-width: 768px) {
    .tool-card { padding: 18px !important; }
    .chart-container { height: 300px !important; }
}