/**
 * Family Financial App v2.00.00 - Simple CSS
 */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.header {
    background: #2c3e50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.8;
}

.nav-link.logout {
    background: #e74c3c;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.nav-divider {
    color: rgba(255,255,255,0.3);
}

.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 12px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 20px 0 10px 0;
    color: #2c3e50;
}

h2 {
    font-size: 28px;
    font-weight: 600;
}

p {
    margin-bottom: 10px;
}

/* Cards */
.card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    background: #ecf0f1;
    padding: 15px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    padding: 20px 15px;
}

.card-footer {
    padding: 10px 15px;
    background: #f8f9fa;
    font-size: 12px;
    color: #7f8c8d;
}

.card.mt-4 {
    margin-top: 30px;
}

.card.mb-4 {
    margin-bottom: 30px;
}

/* Grid */
.grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    padding: 15px;
}

.table thead {
    background: #ecf0f1;
    font-weight: 600;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Text Colors */
.text-success {
    color: #27ae60;
}

.text-danger {
    color: #e74c3c;
}

.text-center {
    text-align: center;
}

/* Auth Page */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-box {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.auth-box h1 {
    text-align: center;
    margin-top: 0;
    color: #667eea;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Filter Form */
.filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-form select {
    min-width: 150px;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 20px;
}

.pagination-link,
.pagination-current {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.pagination-link {
    cursor: pointer;
    color: #3498db;
    text-decoration: none;
}

.pagination-link:hover {
    background: #3498db;
    color: white;
}

.pagination-current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Dashboard Page */
.dashboard-page {
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-page main {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .nav {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
}

/* Utility Classes */
.mt-4 {
    margin-top: 30px;
}

.mb-4 {
    margin-bottom: 30px;
}

.mb-0 {
    margin-bottom: 0;
}
