

/*---------------------------------------------------------------*/
/*-------------------------- Landing Page -----------------------*/
/*---------------------------------------------------------------*/


/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a73e8;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
}

.header h1 {
    font-size: 2rem;
}

.header-right {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Welcome Section */
.welcome-section {
    text-align: left;
    margin: 30px 0 20px;
}

.welcome-section h2 {
    font-size: 3rem;
    padding-left: 10px;
}

/* Overview Section */
.overview {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.overview-card {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.overview-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #555;
}

.overview-card p {
    font-size: 2rem;
    font-weight: bold;
}

.income p {
    color: #1a8a34;
}

.expenses p {
    color: #e53935;
}

.net p {
    color: #1a73e8;
}

/* Transactions Section */
.transactions {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.transactions-header h3 {
    font-size: 1.3rem;
}

.add-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-btn:hover {
    background-color: #155cb0;
}

/* Table */
.transactions-table-container {
    overflow-x: auto;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.transactions-table thead {
    background-color: #e9eef6;
    text-align: left;
}

.transactions-table th,
.transactions-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

.transactions-table th {
    font-weight: 600;
    color: #333;
}

.transactions-table tbody tr:hover {
    background-color: #f9fafc;
}

/* Account Input Cell */
.account-input-cell {
    gap: 6px;
}

.account-input-cell select {
    width: 50%;
    min-width: 100px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: left;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.account-input-cell input:focus {
    border-color: #1a73e8;
    outline: none;
}

/* Search bar */
.search-btn {
    border: none;
    padding: 14px 26px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: black;
    background-color: white;
    border: 2px solid black;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: white;
    background-color: black;
}

.clear-btn {
    border: none;
    padding: 16px 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    color: white;
    background-color: black;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    color: black;
    background-color: white;
}

/* Actions */
.actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.edit-btn,
.delete-btn {
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: white;
}

.edit-btn {
    background-color: #fbbc04;
    transition: 0.4s all ease;
}

.delete-btn {
    background-color: #e53935;
    transition: 0.4s all ease;
}

.edit-btn:hover {
    background-color: #e0a800;
}

.delete-btn:hover {
    background-color: #c62828;
}

/* Amount Colors */
.positive {
    color: #1a8a34;
    font-weight: 600;
}

.negative {
    color: #e53935;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .overview {
        flex-direction: column;
    }

    .transactions-table th, .transactions-table td {
        font-size: 0.9rem;
        padding: 8px;
    }

    .add-btn {
        padding: 6px 10px;
    }
}
