/* 
  Program Outcome Analysis - Premium Design System
  Colors based on Daechi Senior Welfare Center (Indigo & Rose/Pink)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-indigo: #1a237e;
    --primary-indigo-light: #534bae;
    --primary-indigo-dark: #000051;
    --accent-pink: #ec407a;
    --accent-pink-light: #f48fb1;
    --accent-pink-dark: #ad1457;
    --bg-slate: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-large: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-slate);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-transition {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Auth Layout */
#auth-view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-indigo-dark) 0%, var(--primary-indigo) 100%);
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    width: 380px;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-large);
    text-align: center;
}

.login-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-indigo);
}

.login-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Main Layout */
#main-layout {
    display: none; /* Initially hidden */
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

aside {
    background: var(--primary-indigo-dark);
    color: white;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.logo-container {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.logo-container h2 {
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(to right, #fff, var(--accent-pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
}

nav li {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

nav li:hover {
    background: rgba(255, 255, 255, 0.1);
}

nav li.active {
    background: var(--accent-pink);
    box-shadow: 0 4px 14px rgba(236, 64, 122, 0.39);
}

main {
    padding: 2rem 3rem;
    overflow-y: auto;
}

/* Components */
.card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-indigo);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-indigo-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.2);
}

.btn-accent {
    background: var(--accent-pink);
    color: white;
}

.btn-accent:hover {
    background: var(--accent-pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 64, 122, 0.2);
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

input[type="text"], 
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--bg-slate);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary-indigo-light);
}

/* Table Style */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th {
    text-align: left;
    padding: 1rem;
    background: var(--bg-slate);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-slate);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-blue { background: #e0f2fe; color: #0369a1; }
.badge-pink { background: #fce7f3; color: #be185d; }

/* Grid for Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary-indigo);
}

.stat-card.accent {
    border-left-color: var(--accent-pink);
}

.stat-card .label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-indigo);
    margin-top: 0.5rem;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 3rem;
    display: flex;
    gap: 1rem;
}

/* Utility */
.hidden { display: none !important; }

.mt-2 { margin-top: 2rem; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 1rem; }
