/* public/assets/css/hardware/storage-test.css */
.disk-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #8b5cf6; --p-primary-hover: #7c3aed; --p-write: #f43f5e; --p-read: #0ea5e9; --p-text: #0f172a; --p-text-muted: #64748b; width: 100%; max-width: 1100px; margin: 0 auto; background: var(--p-bg); border-radius: 20px; padding: 24px; border: 1px solid var(--p-border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.disk-wrapper *, .disk-wrapper *::before, .disk-wrapper *::after { box-sizing: border-box; }

.disk-header { text-align: center; margin-bottom: 24px; border-bottom: 1px solid var(--p-border); padding-bottom: 24px; }
.disk-title { font-size: 1.7rem; font-weight: 800; color: var(--p-text); margin: 0 0 10px 0; }
.disk-subtitle { font-size: 0.95rem; color: var(--p-text-muted); max-width: 800px; margin: 0 auto; line-height: 1.6; }

.disk-layout { display: flex; gap: 24px; align-items: stretch; }
@media (max-width: 850px) { .disk-layout { flex-direction: column; } }

/* Config Panel */
.disk-config-panel { flex: 1; background: #f8fafc; border-radius: 16px; border: 1px solid var(--p-border); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.disk-panel-title { font-size: 1.05rem; font-weight: 800; color: var(--p-text); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--p-border); padding-bottom: 12px; margin-bottom: 8px; }

.disk-form-group { display: flex; flex-direction: column; gap: 8px; }
.disk-label { font-size: 0.9rem; font-weight: 700; color: #475569; }
.disk-select { width: 100%; padding: 12px 14px; border: 2px solid #cbd5e1; border-radius: 10px; font-size: 0.95rem; font-weight: 700; color: #1e293b; background: #fff; outline: none; cursor: pointer; transition: 0.2s; }
.disk-select:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15); }
.disk-select:disabled { background: #e2e8f0; cursor: not-allowed; opacity: 0.7; }

.disk-btn-primary { margin-top: 10px; width: 100%; padding: 16px; border-radius: 12px; font-weight: 800; font-size: 1.1rem; cursor: pointer; border: none; transition: 0.2s; background: var(--p-primary); color: #ffffff; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); display: flex; align-items: center; justify-content: center; gap: 8px; }
.disk-btn-primary:hover:not(:disabled) { background: var(--p-primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4); }
.disk-btn-primary:disabled { background: #94a3b8; cursor: not-allowed; box-shadow: none; transform: none; }

/* Progress Bar */
.disk-progress-container { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.disk-progress-text { font-size: 0.9rem; font-weight: 700; color: #64748b; font-family: monospace; }
.disk-progress-bar-bg { width: 100%; height: 12px; background: #e2e8f0; border-radius: 6px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
.disk-progress-bar-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #ec4899, #8b5cf6, #06b6d4); transition: width 0.1s linear; }

/* Results Panel */
.disk-results-panel { flex: 1.2; display: flex; flex-direction: column; gap: 16px; }
.disk-stat-grid { display: flex; gap: 16px; }
@media (max-width: 500px) { .disk-stat-grid { flex-direction: column; } }

.disk-stat-box { flex: 1; background: #ffffff; border: 1px solid var(--p-border); padding: 20px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.02); text-align: center; border-top: 4px solid #cbd5e1; transition: 0.3s; }
.disk-stat-box.write-box { border-top-color: var(--p-write); }
.disk-stat-box.read-box { border-top-color: var(--p-read); }
.disk-stat-box.active { transform: scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.disk-stat-label { font-size: 0.85rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.disk-stat-val { font-size: 2.5rem; font-weight: 900; font-family: 'Consolas', monospace; color: #1e293b; line-height: 1; }
.disk-stat-val small { font-size: 1rem; color: #94a3b8; font-weight: 700; }
.disk-stat-sub { margin-top: 8px; font-size: 0.85rem; color: #94a3b8; font-family: monospace; }
.write-box .disk-stat-val { color: var(--p-write); }
.read-box .disk-stat-val { color: var(--p-read); }

/* Terminal */
.disk-terminal { flex: 1; background: #0f172a; border-radius: 12px; border: 2px solid #1e293b; padding: 16px; overflow-y: auto; font-family: 'Consolas', monospace; font-size: 0.9rem; line-height: 1.6; color: #38bdf8; box-shadow: inset 0 5px 20px rgba(0,0,0,0.5); min-height: 150px; }
.disk-log-line { margin-bottom: 4px; }
.disk-log-line.system { color: #64748b; font-style: italic; }
.disk-log-line.error { color: #ef4444; font-weight: 700; }
.disk-log-line.success { color: #10b981; font-weight: 700; }

.disk-hint-card { background: #fef2f2; border-left: 4px solid #ef4444; padding: 16px; border-radius: 0 10px 10px 0; font-size: 0.9rem; color: #7f1d1d; line-height: 1.6; }

/* Dark Mode */
[data-theme="dark"] .disk-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .disk-title, [data-theme="dark"] .disk-panel-title { color: #f8fafc; }
[data-theme="dark"] .disk-subtitle, [data-theme="dark"] .disk-label { color: #94a3b8; }
[data-theme="dark"] .disk-config-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .disk-select { background: #1e293b; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .disk-select:disabled { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .disk-stat-box { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .disk-terminal { border-color: #020617; }
[data-theme="dark"] .disk-progress-bar-bg { background: #1e293b; border-color: #475569; }
[data-theme="dark"] .disk-hint-card { background: rgba(239, 68, 68, 0.1); border-left-color: #ef4444; color: #fca5a5; }