/* Wireframe Styles - Low-fidelity design representation */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
    min-height: 100vh;
    background: linear-gradient(to right, #f0f9f0, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px dashed #ccc; /* Wireframe style */
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 48px;
    display: inline-block;
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    color: #222;
}

.page-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    border-style: dashed; /* Wireframe style */
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    border-style: solid;
}

.login-button {
    width: 100%;
    padding: 14px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    border: 2px solid #4CAF50; /* Wireframe style */
}

.login-button:hover {
    background-color: #45a049;
}

.demo-text {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 20px;
}

/* ============================================
   SIDEBAR (Shared for Dashboard & Transactions)
   ============================================ */

.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #f8f9fa;
    border-right: 2px dashed #ddd; /* Wireframe style */
    padding: 20px;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #ddd; /* Wireframe style */
}

.logo-icon {
    font-size: 32px;
}

.app-name {
    font-size: 20px;
    font-weight: bold;
    color: #4CAF50;
}

.main-nav,
.other-nav {
    margin-bottom: 30px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    border: 1px dashed #ddd; /* Wireframe style */
    transition: background-color 0.2s;
}

.nav-item.active {
    background-color: #333;
    color: white;
    border-style: solid;
}

.nav-item:hover:not(.active) {
    background-color: #e9ecef;
}

.nav-icon {
    font-size: 20px;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

.quick-add-section {
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 2px dashed #ddd; /* Wireframe style */
}

.section-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.quick-add-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 6px;
    text-decoration: none;
    color: #666;
    border: 1px dashed #ddd; /* Wireframe style */
    border-radius: 4px;
    font-size: 14px;
}

.quick-add-item:hover {
    background-color: #e9ecef;
}

.quick-add-item.active {
    background-color: #333;
    color: white;
    border-style: solid;
}

.quick-add-icon {
    font-size: 18px;
}

/* ============================================
   MAIN CONTENT (Shared for Dashboard & Transactions)
   ============================================ */

.dashboard-page,
.transactions-page,
.income-page,
.expense-page,
.account-page {
    margin-left: 250px;
    min-height: 100vh;
    background-color: #ffffff;
}

.main-content {
    padding: 30px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header .page-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #222;
}

.page-header .page-subtitle {
    font-size: 14px;
    color: #666;
}

/* ============================================
   DASHBOARD SPECIFIC
   ============================================ */

.cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.summary-card,
.chart-card {
    background: white;
    border: 2px dashed #ddd; /* Wireframe style */
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.card-icon {
    font-size: 24px;
    opacity: 0.6;
}

.card-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #222;
}

.card-value.positive {
    color: #4CAF50;
}

.card-context {
    font-size: 12px;
    color: #999;
}

.chart-placeholder {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 2px dashed #ccc; /* Wireframe style */
    border-radius: 4px;
    padding: 20px;
}

.chart-label {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.chart-note {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.chart-legend {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    font-size: 12px;
    color: #666;
}

.category-list {
    text-align: left;
    width: 100%;
}

.category-item {
    font-size: 14px;
    padding: 8px 0;
    color: #333;
    border-bottom: 1px dashed #ddd; /* Wireframe style */
}

.category-item:last-child {
    border-bottom: none;
}

/* ============================================
   TRANSACTIONS PAGE SPECIFIC
   ============================================ */

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    font-size: 18px;
    color: #999;
}

.search-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px dashed #ddd; /* Wireframe style */
    border-radius: 6px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50;
    border-style: solid;
}

.filter-dropdown {
    padding: 12px 40px 12px 12px;
    border: 2px dashed #ddd; /* Wireframe style */
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    min-width: 150px;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #4CAF50;
    border-style: solid;
}

.transactions-section {
    background: white;
    border: 2px dashed #ddd; /* Wireframe style */
    border-radius: 8px;
    padding: 24px;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px dashed #ddd; /* Wireframe style */
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.transaction-count {
    font-size: 14px;
    color: #999;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
    padding: 16px;
    border: 1px dashed #ddd; /* Wireframe style */
    border-radius: 6px;
    gap: 16px;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transaction-description {
    font-size: 16px;
    font-weight: 500;
    color: #222;
}

.category-tag {
    display: inline-block;
    padding: 4px 6px;
    background-color: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    border: 1px dashed #ccc; /* Wireframe style */
}

.category-tag.income-tag {
    background-color: #333;
    color: white;
    border-style: solid;
}

.transaction-date {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.transaction-amount {
    font-size: 16px;
    font-weight: 600;
    text-align: right;
}

.transaction-amount.expense {
    color: #d32f2f;
}

.transaction-amount.income {
    color: #4CAF50;
}

/* ============================================
   INCOME PAGE SPECIFIC
   ============================================ */

.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.form-section {
    background: white;
    border: 2px dashed #ddd; /* Wireframe style */
    border-radius: 8px;
    padding: 24px;
}

.info-banner {
    background-color: #e8f5e9;
    border: 2px dashed #4CAF50; /* Wireframe style */
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-banner-icon {
    font-size: 24px;
}

.info-banner-content {
    flex: 1;
}

.info-banner-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.info-banner-text {
    font-size: 14px;
    color: #666;
}

.income-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px dashed #ddd; /* Wireframe style */
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #4CAF50;
    border-style: solid;
}

.form-field input.highlighted {
    border-color: #4CAF50;
    border-style: solid;
    background-color: #f0f9f0;
}

.form-field textarea {
    min-height: 100px;
    resize: vertical;
}

.date-input-wrapper {
    position: relative;
}

.date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
    pointer-events: none;
}

.submit-button {
    width: 100%;
    padding: 16px;
    background-color: #4CAF50;
    color: white;
    border: 2px solid #4CAF50; /* Wireframe style */
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #45a049;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.recent-income-card {
    background: white;
    border: 2px dashed #ddd; /* Wireframe style */
    border-radius: 8px;
    padding: 24px;
}

.card-header-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px dashed #ddd; /* Wireframe style */
}

.card-title-section {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.card-subtitle-section {
    font-size: 14px;
    color: #999;
}

.income-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.income-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px dashed #ddd; /* Wireframe style */
    border-radius: 6px;
}

.income-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.income-item-title {
    font-size: 15px;
    font-weight: 500;
    color: #222;
}

.income-item-meta {
    font-size: 13px;
    color: #666;
}

.income-item-amount {
    font-size: 16px;
    font-weight: 600;
    color: #4CAF50;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd; /* Wireframe style */
}

.summary-stat:last-child {
    border-bottom: none;
}

.summary-stat-label {
    font-size: 14px;
    color: #666;
}

.summary-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.summary-stat-value.income-value {
    color: #4CAF50;
}

/* ============================================
   EXPENSE PAGE SPECIFIC
   ============================================ */

.upload-section {
    background: white;
    border: 2px dashed #ddd; /* Wireframe style */
    border-radius: 8px;
    padding: 24px;
}

.upload-header {
    margin-bottom: 24px;
}

.upload-area {
    border: 2px dashed #ccc; /* Wireframe style */
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    background-color: #f8f9fa;
    margin-bottom: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.upload-area:hover {
    background-color: #e9ecef;
}

.upload-icon {
    font-size: 48px;
    color: #999;
    margin-bottom: 16px;
    display: block;
}

.upload-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: #666;
}

.upload-buttons {
    display: flex;
    gap: 12px;
}

.upload-button {
    flex: 1;
    padding: 12px;
    border: 2px dashed #ddd; /* Wireframe style */
    border-radius: 6px;
    background-color: white;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.upload-button:hover {
    background-color: #f8f9fa;
    border-color: #4CAF50;
    border-style: solid;
}

.expense-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.expense-submit-button {
    width: 100%;
    padding: 16px;
    background-color: #d32f2f;
    color: white;
    border: 2px solid #d32f2f; /* Wireframe style */
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.expense-submit-button:hover {
    background-color: #c62828;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .dashboard-page,
    .transactions-page,
    .income-page,
    .expense-page,
    .account-page {
        margin-left: 200px;
    }
    
    .cards-row {
        grid-template-columns: 1fr;
    }
    
    .transaction-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .transaction-date,
    .transaction-amount {
        text-align: left;
    }
}

