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

* {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: #2c3e50;
}

.view {
    max-width: 900px;
    width: fit-content;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

/* Typography & Layout */
h2, h3 {
    color: #1a202c;
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255,255,255,0.8);
}

.login-card {
    max-width: 420px;
    margin: 10vh auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #007bff, #00d2ff);
}

.login-card h2 {
    margin-bottom: 30px;
    color: #2d3748;
    font-size: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.form-group input:focus {
    background-color: #ffffff;
    border-color: #3182ce;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

/* Buttons */
button {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}
.btn-primary:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}
.btn-success:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}
.btn-secondary:hover { 
    background-color: #e2e8f0; 
}

.btn-block {
    width: 100%;
}

/* Metric Boxes */
.metric-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.metric-box:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.metric-box h4 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

/* Dependents List */
.dependent-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #ffffff;
    transition: all 0.2s ease;
}
.dependent-list-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
}
.dependent-list-item span {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}
.dependent-list-item button {
    padding: 10px 20px;
    background: #ebf8ff;
    color: #3182ce;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}
.dependent-list-item button:hover {
    background: #bee3f8;
    color: #2b6cb0;
}

.error {
    color: #e53e3e;
    margin-top: 16px;
    font-size: 14px;
    background: #fff5f5;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #fed7d7;
}

a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}
