/*
Theme Name: FIRE Expense Tracker
Description: Custom theme with magic link authentication for expense tracking
Version: 1.0
Author: Ian James
*/

/* Basic styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    margin: 0;
    padding: 0;
}

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

.login-form {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-form h1 {
    text-align: center;
    color: #1f2937;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.btn:hover {
    background: #2563eb;
}

.message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.dashboard {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.logout-btn {
    background: #dc2626;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.logout-btn:hover {
    background: #b91c1c;
}
/* Sidebar Navigation */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #1f2937;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #374151;
}

.sidebar-header h3 {
    margin: 0;
    color: #f3f4f6;
    font-size: 18px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #d1d5db;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sidebar-nav a:hover {
    background-color: #374151;
    color: white;
}

.sidebar-nav a.active {
    background-color: #3b82f6;
    color: white;
}

.sidebar-nav .icon {
    margin-right: 10px;
    font-size: 16px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #374151;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-link {
    color: #f87171;
    text-decoration: none;
    font-size: 12px;
}

.logout-link:hover {
    color: #dc2626;
}

.main-content {
    margin-left: 250px;
    flex: 1;
    background: #f8fafc;
}

.content-header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.content-body {
    padding: 0 30px 30px;
}

.page-title {
    margin: 0;
    color: #1f2937;
    font-size: 24px;
}

/* Account Cards */
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.account-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
}

.account-card.current { border-left-color: #10b981; }
.account-card.credit { border-left-color: #f59e0b; }
.account-card.loan { border-left-color: #ef4444; }
.account-card.investment { border-left-color: #8b5cf6; }
.account-card.cash { border-left-color: #6b7280; }
.account-card.savings { border-left-color: #3b82f6; }

.account-type {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 5px;
}

.account-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.account-balance {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.account-balance.positive { color: #10b981; }
.account-balance.negative { color: #ef4444; }

.account-details {
    font-size: 12px;
    color: #6b7280;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-edit {
    background: #3b82f6;
    color: white;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.add-account-btn {
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.add-account-btn:hover {
    background: #059669;
}
