/* Main Styles - Layout, typography, and base styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body { font-family: var(--font-family); background-color: var(--color-background); color: var(--color-text-primary); line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { margin-bottom: var(--spacing-md); font-weight: 600; line-height: 1.2; }
h1 { font-size: 2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.25rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; gap: var(--spacing-lg); }
.spinner { width: 40px; height: 40px; border: 3px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.auth-view { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: var(--spacing-lg); }
.auth-container { width: 100%; max-width: 400px; background: var(--color-surface); padding: var(--spacing-xl); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.auth-header { text-align: center; margin-bottom: var(--spacing-xl); }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: var(--spacing-md) var(--spacing-lg); background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.header-left, .header-right { display: flex; align-items: center; gap: var(--spacing-md); }
.app-title { font-size: 1.25rem; margin: 0; }
.app-container { display: flex; height: calc(100vh - 65px); }
.sidebar { width: 280px; background: var(--color-surface); border-right: 1px solid var(--color-border); overflow-y: auto; padding: var(--spacing-lg); }
.sidebar-section { margin-bottom: var(--spacing-xl); }
.sidebar-title { font-size: 0.875rem; text-transform: uppercase; color: var(--color-text-tertiary); margin-bottom: var(--spacing-sm); }
.content { flex: 1; overflow-y: auto; padding: var(--spacing-lg); }
.content-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--spacing-lg); }
.content-title { margin: 0; }
.prompt-list { display: grid; gap: var(--spacing-md); }
.prompt-list[data-view="card"] { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.prompt-list[data-view="list"] { grid-template-columns: 1fr; }
.empty-state { text-align: center; padding: var(--spacing-xl); color: var(--color-text-secondary); }
@media (max-width: 768px) { .app-container { flex-direction: column; } .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--color-border); } }
.toast-container { position: fixed; top: var(--spacing-lg); right: var(--spacing-lg); z-index: 1000; }
.modal-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 999; }
