/* public/assets/css/main.css */

:root {
    --bg-primary:     #0d1117;   
    --bg-secondary:   #161b22;   
    --bg-tertiary:    #21262d;   
    --bg-hover:       #30363d;   
    --bg-message-out: #005c4b;   
    --bg-message-in:  #202c33;   
    --accent-primary: #00a884;   
    --accent-blue:    #1f6feb;   
    --accent-red:     #f85149;   
    --accent-orange:  #d29922;   
    --accent-purple:  #8b949e;   
    --text-primary:   #e6edf3;   
    --text-secondary: #8b949e;   
    --border:         #30363d;   
    --shadow:         rgba(0,0,0,0.4);
    --font-main: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Authentication Card Styles */
.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--shadow);
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.auth-header p { color: var(--text-secondary); font-size: 0.9rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; }
.form-control {
    width: 100%; padding: 0.75rem 1rem; background-color: var(--bg-tertiary);
    border: 1px solid var(--border); color: var(--text-primary);
    border-radius: 6px; font-size: 1rem; transition: border-color 150ms ease;
}
.form-control:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.2); }

.btn-primary {
    width: 100%; padding: 0.75rem 1rem; background-color: var(--accent-primary);
    color: #ffffff; border: none; border-radius: 6px; font-size: 1rem;
    font-weight: 600; cursor: pointer; transition: background-color 150ms ease;
}
.btn-primary:hover { background-color: #008f6f; }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

.alert { padding: 0.75rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.875rem; display: none; }
.alert-danger { background-color: rgba(248, 81, 73, 0.1); color: var(--accent-red); border: 1px solid rgba(248, 81, 73, 0.4); }

/* Globals for Navigation */
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; background-color: var(--accent-blue); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: bold; cursor: pointer; }
.avatar-xs { width: 28px; height: 28px; border-radius: 50%; background-color: var(--accent-purple); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: bold; margin-right: 0.5rem; flex-shrink: 0; }
.text-muted { color: var(--text-secondary); }
.text-btn { background: none; border: none; color: var(--accent-blue); cursor: pointer; font-size: 0.85rem; }
.text-btn:hover { text-decoration: underline; }

/* Notification UI */
.notif-wrapper .badge {
    position: absolute; top: 0; right: 0; background-color: var(--accent-red);
    color: white; font-size: 0.65rem; padding: 2px 5px; border-radius: 10px; font-weight: bold;
}
.notif-panel {
    position: absolute; bottom: 50px; left: 60px; width: 320px;
    background-color: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 8px; box-shadow: 0 10px 30px var(--shadow);
    z-index: 1000; overflow: hidden; display: flex; flex-direction: column; max-height: 400px;
}
.notif-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem; border-bottom: 1px solid var(--border); background-color: var(--bg-tertiary);
}
.notif-list { overflow-y: auto; flex-grow: 1; }
.notif-item {
    padding: 1rem; border-bottom: 1px solid var(--border); cursor: pointer;
    transition: background-color 150ms ease; display: flex; flex-direction: column; gap: 0.25rem;
}
.notif-item:hover { background-color: var(--bg-hover); }
.notif-item.unread { background-color: rgba(0, 168, 132, 0.05); border-left: 3px solid var(--accent-primary); }
.notif-title { font-weight: 600; font-size: 0.9rem; }
.notif-body { font-size: 0.85rem; color: var(--text-secondary); }
.notif-time { font-size: 0.75rem; color: var(--text-muted); align-self: flex-end; }

@media (max-width: 768px) {
    .notif-panel { bottom: 70px; left: auto; right: 10px; width: 300px; }
}
