/**
 * ============================================================
 * UNIFIED TRAINING CONFIGURATION STYLING
 * ============================================================
 * Modern, responsive styles for the combined Setup+Advanced page
 */

/* ============================================ */
/* NEW USER WELCOME BANNER */
/* ============================================ */

.new-user-banner {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.welcome-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.welcome-text {
    flex: 1;
    min-width: 300px;
}

.welcome-text strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: white;
}

.welcome-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.btn-link-small {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.btn-link-small:hover {
    color: white;
}

/* ============================================ */
/* WELCOME MODAL */
/* ============================================ */

.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.welcome-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.welcome-card {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 2px solid var(--primary-color, #2196F3);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: slideUp 0.4s ease;
    color: white;
}

.welcome-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
}

.welcome-card h1 {
    text-align: center;
    color: var(--primary-color, #2196F3);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.welcome-description {
    text-align: center;
    margin-bottom: 1.5rem;
}

.welcome-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.welcome-features li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 300px;
}

.skip-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

.skip-link:hover {
    color: white;
}

.dont-show-again {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    justify-content: center;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to { opacity: 0; }
}

/* ============================================ */
/* CONFIG ACTIONS */
/* ============================================ */

.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* ============================================ */
/* CONFIG SECTIONS */
/* ============================================ */

.config-section {
    background: var(--card-bg, #1e1e1e);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title h2, .section-title h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color, #2196F3);
}

.section-title p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.essentials-section {
    border: 2px solid var(--primary-color, #2196F3);
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(25, 118, 210, 0.05));
}

/* ============================================ */
/* MODEL TYPE CARDS */
/* ============================================ */

.model-type-cards, .strategy-cards, 
.processing-mode-cards, .training-method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* GPU Count Selector - Horizontal across full width */
.gpu-count-selector {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    margin-top: 0.5rem;
    width: 100%;
}

.gpu-count-selector.horizontal {
    display: flex;
    flex-direction: row;
}

.gpu-count-selector .count-option {
    flex: 1;
}

.gpu-count-selector .count-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    width: 100%;
    min-height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 700;
    font-size: 1.5rem;
}

.gpu-count-selector .count-option:hover span {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color, #2196F3);
}

.gpu-count-selector .count-option input:checked ~ span {
    background: var(--primary-color, #2196F3);
    border-color: var(--primary-color, #2196F3);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.type-card, .count-option, .strategy-card, .mode-card, .method-card {
    position: relative;
    cursor: pointer;
}

.type-card input, .count-option input, .strategy-card input, 
.mode-card input, .method-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Consistent card sizes across ALL card types */
.type-card .card-content, 
.strategy-card .card-content,
.mode-card .card-content, 
.method-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    min-height: 120px;
    height: 100%;
    text-align: center;
}

.type-card .card-icon,
.strategy-card .card-icon,
.mode-card .card-icon,
.method-card .card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.type-card strong,
.strategy-card strong,
.mode-card strong,
.method-card strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.type-card small,
.strategy-card small,
.mode-card small,
.method-card small {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Make all card grids consistent */
.model-type-cards, 
.strategy-cards, 
.training-method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* Data processing cards - allow more space for text */
.processing-mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* Mode benefits list styling */
.mode-benefits {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    font-size: 0.75rem;
    text-align: left;
}

.mode-benefits li {
    padding: 0.2rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.mode-benefits li::before {
    content: "✓ ";
    color: #4CAF50;
    font-weight: bold;
}

/* Performance toggles - consistent grid */
.toggles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.type-card:hover .card-content,
.strategy-card:hover .card-content, .mode-card:hover .card-content,
.method-card:hover .card-content {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color, #2196F3);
}

.type-card input:checked ~ .card-content,
.strategy-card input:checked ~ .card-content,
.mode-card input:checked ~ .card-content,
.method-card input:checked ~ .card-content {
    background: var(--primary-color, #2196F3);
    border-color: var(--primary-color, #2196F3);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-label {
    font-weight: 600;
}

.recommended {
    position: relative;
}

.recommended::after {
    content: "⭐";
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1.5rem;
}

/* ============================================ */
/* MODE BENEFITS */
/* ============================================ */

.mode-benefits, .benefits-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
}

.mode-benefits li, .benefits-list li {
    padding: 0.25rem 0;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================ */
/* BATCH SIZE DISPLAY */
/* ============================================ */

.batch-size-display {
    background: linear-gradient(135deg, #1976D2, #2196F3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: white;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.sticky-batch {
    position: sticky;
    top: 20px;
    z-index: 100;
}

/* Compact batch size layout */
.batch-size-display .batch-header {
    flex-shrink: 0;
}

.batch-size-display .batch-header h2 {
    font-size: 1rem;
    margin: 0;
}

.batch-size-display .batch-value {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.batch-size-display .batch-number {
    font-size: 2.5rem;
    font-weight: bold;
}

.batch-size-display .batch-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.batch-size-display .batch-progress {
    flex: 1;
    min-width: 150px;
}

.batch-size-display .batch-status {
    font-size: 0.9rem;
}

.batch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.batch-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.calculating-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.batch-value {
    text-align: center;
    margin: 1.5rem 0;
}

.batch-number {
    font-size: 4rem;
    font-weight: bold;
    color: white;
}

.batch-number.calculating {
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.batch-label {
    display: block;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

.batch-progress {
    margin: 1.5rem 0;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: #10b981;
    transition: width 0.5s ease, background-color 0.3s ease;
}

.progress-label {
    text-align: center;
    font-size: 1rem;
    color: white;
}

.batch-status {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 500;
}

.batch-status.warning {
    background: rgba(239, 68, 68, 0.2);
}

.batch-status.info {
    background: rgba(59, 130, 246, 0.2);
}

.batch-status.success {
    background: rgba(16, 185, 129, 0.2);
}

/* ============================================ */
/* ADVANCED SECTION */
/* ============================================ */

.advanced-section {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-toggle {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 0;
    color: white;
    text-align: left;
}

.section-toggle:hover {
    opacity: 0.8;
}

.section-toggle h2 {
    margin: 0;
    flex: 1;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.toggle-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.section-content {
    margin-top: 2rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-toggle-nested {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 1.5rem;
}

.section-toggle-nested h3 {
    margin: 0;
}

/* ============================================ */
/* CONDITIONAL SECTIONS */
/* ============================================ */

.conditional-section {
    animation: conditionalReveal 0.3s ease;
}

@keyframes conditionalReveal {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.conditional-reveal {
    animation: conditionalReveal 0.3s ease;
}

/* ============================================ */
/* STRATEGY EXPLANATION */
/* ============================================ */

.strategy-explanation {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(33, 150, 243, 0.1);
    border-left: 4px solid var(--primary-color, #2196F3);
    border-radius: 4px;
}

.strategy-detail h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color, #2196F3);
}

.strategy-detail p {
    margin: 0.5rem 0;
}

.use-case {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================ */
/* CHECKBOX GROUPS - Performance Optimizations */
/* ============================================ */

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Fixed 2 columns */
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .checkbox-group {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}

/* ============================================ */
/* CHECKBOX CARDS (Master Definition)          */
/* ALL CARDS MUST BE THE SAME SIZE!            */
/* ============================================ */
.checkbox-card {
    position: relative;
    display: flex;
    align-items: stretch; /* Stretch to fill grid cell */
    padding: 0; /* Content handles padding */
    cursor: pointer;
    transition: all 0.2s ease;
    height: 90px; /* FIXED HEIGHT - ensures all cards are same size */
    min-height: 90px;
    max-height: 90px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.checkbox-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color, #2196F3);
}

.checkbox-card input:checked ~ .checkbox-content {
    color: var(--primary-color, #2196F3);
}

.checkbox-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkbox-content span {
    font-weight: 500;
}

.checkbox-content small {
    color: rgba(255, 255, 255, 0.6);
}

.checkbox-simple {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    cursor: pointer;
}

/* ============================================ */
/* TERMINAL */
/* ============================================ */

.terminal-section {
    background: #0d1117;
    border: 1px solid #30363d;
}

.terminal {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

.terminal-block {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terminal-block strong {
    color: #58a6ff;
}

.terminal-value {
    color: #8b949e;
}

.calculation-steps {
    margin: 0.5rem 0 0 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    color: #c9d1d9;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
}

/* ============================================ */
/* FORM ELEMENTS */
/* ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color, #2196F3);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-control-sm {
    padding: 0.5rem;
    font-size: 0.9rem;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color, #2196F3);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color, #2196F3);
    cursor: pointer;
    border: none;
}

.form-help {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* ============================================ */
/* SECTION FOOTER */
/* ============================================ */

.section-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */

@media (max-width: 768px) {
    .model-type-cards, .gpu-count-selector {
        grid-template-columns: 1fr 1fr;
    }
    
    .processing-mode-cards, .training-method-cards {
        grid-template-columns: 1fr;
    }
    
    .batch-number {
        font-size: 3rem;
    }
    
    .welcome-content {
        flex-direction: column;
        text-align: center;
    }
    
    .config-actions {
        flex-direction: column;
    }
    
    .section-footer {
        flex-direction: column;
    }
}

/* ============================================ */
/* PROJECT NAME CONTROLS */
/* ============================================ */

.project-name-controls {
    display: flex;
    gap: 0.75rem;
}

.project-name-controls input {
    flex: 1;
}

/* ============================================ */
/* SEQUENCE LENGTH SELECTOR */
/* ============================================ */

.seq-length-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.seq-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* ============================================ */
/* DATA OPTIONS */
/* ============================================ */

.data-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================================ */
/* CALCULATION TERMINAL */
/* ============================================ */

.terminal-section {
    margin: 2rem 0;
}

.terminal-section .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calculation-status {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    border-radius: 12px;
    color: #4CAF50;
}

.terminal {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #00ff00;
}

.terminal-line {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.terminal-prompt {
    color: #2196F3;
    font-weight: bold;
    flex-shrink: 0;
}

.terminal-text {
    color: rgba(255, 255, 255, 0.9);
}

.terminal-result {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.calculation-steps-container {
    margin: 1rem 0;
}

.batch-override-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.warning-box {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 152, 0, 0.1);
    border-left: 3px solid #FF9800;
    border-radius: 4px;
    color: #FF9800;
    font-size: 0.85rem;
}

/* ============================================ */
/* AI MONITORING SECTION */
/* ============================================ */

.ai-monitoring-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(33, 150, 243, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 8px;
}

.ai-monitoring-section h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2196F3;
}

.monitoring-info-box {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 0.85rem;
}

.monitoring-info-box p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.monitoring-info-box strong {
    color: #2196F3;
}

/* ============================================ */
/* EXPERT OPTIONS & TOGGLES */
/* ============================================ */

.expert-section {
    margin: 2rem 0;
}

.section-toggle-nested {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.section-toggle-nested:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color, #2196F3);
}

.section-toggle-nested .toggle-hint {
    margin-left: auto;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.toggles-section {
    margin: 1.5rem 0;
}

.toggles-section h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================ */
/* CHECKBOX CARDS (Additional Styles) */
/* ============================================ */
/* Main .checkbox-card definition is above - these are additional styles */

.checkbox-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-card .checkbox-content {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    height: 86px; /* FIXED HEIGHT to match parent card */
    min-height: 86px;
    max-height: 86px;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.checkbox-card:hover .checkbox-content {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color, #2196F3);
}

.checkbox-card input:checked ~ .checkbox-content {
    background: rgba(33, 150, 243, 0.2);
    border-color: var(--primary-color, #2196F3);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.checkbox-card .checkbox-content span {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.checkbox-card .checkbox-content small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
}

/* Note: Main .checkbox-group definition is above in the master definition section */

/* Settings Panels */
.settings-panel {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.settings-panel h4 {
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Checkbox with Label (for descriptive checkboxes) */
.checkbox-with-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-with-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.checkbox-with-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label-content {
    flex: 1;
}

.checkbox-label-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.95);
}

.checkbox-label-content small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* End of Unified Training Config CSS */
