:root {
    --bg: #0f172a;
    --panel-bg: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --border: #334155;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 2rem;
    line-height: 1.5;
}

.panel {
    background: var(--panel-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

h1, h2 {
    margin-top: 0;
    font-weight: 600;
}

input, button {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    box-sizing: border-box;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

button:hover {
    background: var(--primary-hover);
}

.tabs button {
    width: 50%;
    background: transparent;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--text-muted);
}

.tabs button.active {
    border-bottom-color: var(--primary);
    color: var(--text);
}

.tabs {
    display: flex;
    margin-bottom: 1rem;
}

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

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

header button {
    width: auto;
    margin: 0;
    padding: 0.5rem 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-photo-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.profile-photo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.profile-photo-header h3 {
    margin: 0;
}

.profile-photo-preview {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.profile-photo-preview img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--bg);
}

.profile-photo-meta {
    flex: 1;
}

.profile-photo-status {
    margin: 0 0 0.25rem 0;
    color: var(--text);
}

.profile-photo-status.success {
    color: #86efac;
}

.profile-photo-status.error {
    color: #fda4af;
}

.muted {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.secondary-btn {
    width: auto;
    padding: 0.6rem 0.9rem;
    margin: 0;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.08);
}

.profile-image-form input {
    display: none;
}

.file-upload {
    display: block;
    border: 2px dashed var(--border);
    padding: 2rem;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.file-upload:hover {
    border-color: var(--primary);
}

.file-upload input {
    display: none;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.wardrobe-card {
    background: var(--bg);
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid var(--border);
    text-align: center;
}

.wardrobe-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.wardrobe-card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.outfit-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.outfit-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
}

.outfit-card .reasoning {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0.5rem 0;
}

.hidden {
    display: none !important;
}

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