/* Minimalist Day Mode Stylesheet for AIGC Marking and Watermark Evaluation System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-main: #f8fafc;        /* Slate 50 */
    --bg-card: #ffffff;        /* Pure White */
    --bg-input: #f1f5f9;       /* Slate 100 */
    
    --border-color: #e2e8f0;   /* Slate 200 */
    --border-focus: #3b82f6;   /* Royal Blue */
    
    --primary: #2563eb;        /* Blue 600 */
    --primary-hover: #1d4ed8;  /* Blue 700 */
    --accent-orange: #f97316;  /* Orange 500 (Cloudflare Theme) */
    
    --success: #059669;        /* Emerald 600 */
    --warning: #d97706;        /* Amber 600 */
    --danger: #dc2626;         /* Red 600 */
    
    --text-main: #0f172a;      /* Slate 900 */
    --text-muted: #475569;     /* Slate 600 */
    --text-light: #64748b;     /* Slate 500 */
    
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    line-height: 1.5;
}

header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
}

header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
}

.container {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
    }
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Upload Area */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    background: var(--bg-main);
    transition: var(--transition);
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--border-focus);
    background: rgba(59, 130, 246, 0.02);
}

.upload-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-zone p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.file-input {
    display: none;
}

/* Samples */
.sample-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-sample {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.btn-sample:hover {
    border-color: var(--border-focus);
    color: var(--primary);
}

.btn-sample.active {
    background: rgba(37, 99, 235, 0.06);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 500;
}

.sample-tag {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
}

.tag-clean { background: rgba(5, 150, 105, 0.1); color: var(--success); }
.tag-explicit { background: rgba(217, 119, 6, 0.1); color: var(--warning); }
.tag-implicit { background: rgba(59, 130, 246, 0.1); color: var(--primary); }

/* Settings */
.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.setting-item label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.setting-item input[type="text"], 
.setting-item input[type="number"] {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.setting-item input:focus {
    border-color: var(--border-focus);
}

/* Image Workspace */
.workspace {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.canvas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .canvas-grid {
        grid-template-columns: 1fr;
    }
}

.canvas-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.canvas-box canvas {
    max-width: 100%;
    max-height: 280px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #f1f5f9;
}

.canvas-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
}

/* Sliders */
.sliders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .sliders-grid {
        grid-template-columns: 1fr;
    }
}

.slider-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.slider-value {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.slider-item input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    outline: none;
}

.slider-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-muted);
}

.btn-secondary:hover {
    background: #cbd5e1;
}

/* Results Section */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 1100px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 12px;
    font-weight: 500;
}

.status-yes { background: rgba(5, 150, 105, 0.1); color: var(--success); }
.status-no { background: rgba(220, 38, 38, 0.1); color: var(--danger); }
.status-unknown { background: rgba(100, 116, 139, 0.1); color: var(--text-light); }

.info-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

.info-label {
    color: var(--text-light);
}

.info-value {
    color: var(--text-muted);
}

.info-value.monospaced {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.progress-bar-bg {
    flex: 1;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    width: 35px;
    text-align: right;
}

.chart-container {
    height: 180px;
    width: 100%;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 10;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}
