/* ==========================================
   RESET
========================================== */

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


body {
    font-family: Arial, Helvetica, sans-serif;

    background: #fffaf0;

    color: #26354d;

    min-height: 100vh;
}


/* ==========================================
   HEADER
========================================== */

.top-header {

    background:
        linear-gradient(
            135deg,
            #ff7300,
            #ff4d00
        );

    color: white;

    padding: 38px 20px 28px;

    text-align: center;

    position: relative;

    overflow: hidden;
}


.top-header::after {

    content: "";

    position: absolute;

    width: 700px;
    height: 180px;

    right: -150px;
    bottom: -100px;

    background: rgba(255,255,255,0.08);

    transform: rotate(-10deg);

    border-radius: 50%;
}


.header-content {

    position: relative;

    z-index: 2;
}


.header-content h1 {

    font-size: 48px;

    font-weight: 700;

    margin-bottom: 10px;
}


.tagline {

    font-size: 24px;

    font-weight: 600;

    word-spacing: 8px;
}


.header-line {

    width: 100%;

    height: 2px;

    background: rgba(255,255,255,0.6);

    margin: 18px auto;
}


.current-date {

    font-size: 25px;

    font-weight: 600;
}


/* ==========================================
   NAVIGATION
========================================== */

.navigation {

    background: #fffdf8;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 15px;

    border-bottom: 1px solid #eee4d2;

    box-shadow: 0 3px 10px rgba(0,0,0,0.05);

    overflow-x: auto;

    white-space: nowrap;
}


.nav-link {

    text-decoration: none;

    color: #26354d;

    font-size: 19px;

    font-weight: 600;

    padding: 14px 25px;

    border-radius: 20px;

    transition: 0.25s;
}


.nav-link:hover {

    background: #fff0df;

    color: #f45b00;
}


.nav-link.active {

    background: #ff6500;

    color: white;

    box-shadow: 0 5px 12px rgba(255,101,0,0.20);
}


/* ==========================================
   MAIN CONTAINER
========================================== */

.container {

    max-width: 1100px;

    margin: auto;

    padding: 30px;
}


/* ==========================================
   SECTION TITLE
========================================== */

.section-title {

    text-align: center;

    color: #e95708;

    font-size: 38px;

    margin: 0 0 25px;

    font-weight: 700;
}


/* ==========================================
   SUMMARY GRID
========================================== */

.summary-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}


/* ==========================================
   SUMMARY CARD
========================================== */

.summary-card {

    background: white;

    border: 1px solid #eadcc6;

    border-radius: 17px;

    padding: 25px 40px;

    min-height: 135px;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.03);

    transition: 0.2s;
}


.summary-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(0,0,0,0.08);
}


.card-title {

    font-size: 25px;

    font-weight: 600;

    margin-bottom: 12px;
}


.amount {

    font-size: 43px;

    font-weight: 700;
}


/* ==========================================
   COLORS
========================================== */

.income-color {

    color: #279b68;
}


.expense-color {

    color: #e33434;
}


.donation-color {

    color: #f29a00;
}


.member-color {

    color: #159c7a;
}


.subscription-color {

    color: #0873cc;
}


/* ==========================================
   BALANCE
========================================== */

.balance-card {

    margin-top: 20px;

    padding: 25px 40px;

    min-height: 150px;

    color: white;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #ff7900,
            #ff5500
        );

    position: relative;

    overflow: hidden;
}


.balance-card::after {

    content: "";

    position: absolute;

    width: 600px;

    height: 160px;

    right: -120px;

    bottom: -80px;

    background: rgba(255,255,255,0.07);

    transform: rotate(-10deg);

    border-radius: 50%;
}


.balance-title {

    font-size: 27px;

    font-weight: 600;

    position: relative;

    z-index: 2;
}


.balance-amount {

    font-size: 54px;

    font-weight: 700;

    margin-top: 10px;

    position: relative;

    z-index: 2;
}


/* ==========================================
   QUICK NOTE
========================================== */

.quick-title {

    margin-top: 30px;

    margin-bottom: 15px;
}


.quick-note {

    border: 2px dashed #efad62;

    border-radius: 18px;

    padding: 35px 20px;

    text-align: center;

    font-size: 25px;

    font-style: italic;

    color: #df6a25;

    background: #fffdf8;
}


/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media (max-width: 700px) {


    .header-content h1 {

        font-size: 37px;
    }


    .tagline {

        font-size: 19px;
    }


    .current-date {

        font-size: 18px;
    }


    .navigation {

        justify-content: flex-start;

        padding: 10px;
    }


    .nav-link {

        font-size: 16px;

        padding: 12px 17px;
    }


    .container {

        padding: 20px 15px;
    }


    .section-title {

        font-size: 31px;
    }


    .summary-grid {

        grid-template-columns: 1fr;

        gap: 15px;
    }


    .summary-card {

        padding: 22px 25px;
    }


    .card-title {

        font-size: 21px;
    }


    .amount {

        font-size: 38px;
    }


    .balance-card {

        padding: 23px 25px;
    }


    .balance-title {

        font-size: 23px;
    }


    .balance-amount {

        font-size: 45px;
    }


    .quick-note {

        font-size: 20px;

        padding: 28px 15px;
    }

}

/* ==========================================
   MEMBER PAGE
========================================== */

.form-card,
.table-card {

    background: white;

    border: 1px solid #eadcc6;

    border-radius: 18px;

    padding: 25px;

    margin-bottom: 25px;

    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}


.form-card h3 {

    color: #e95708;

    font-size: 25px;

    margin-bottom: 22px;
}


.form-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}


.form-group {

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.form-group label {

    font-weight: 600;

    font-size: 16px;

    color: #26354d;
}


.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    padding: 13px;

    border: 1px solid #d9ccb9;

    border-radius: 10px;

    font-size: 16px;

    outline: none;

    font-family: inherit;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color: #ff6500;

    box-shadow: 0 0 0 3px rgba(255,101,0,0.10);
}


.full-width {

    grid-column: 1 / -1;
}


.primary-button {

    margin-top: 20px;

    border: none;

    background: #ff6500;

    color: white;

    padding: 13px 25px;

    border-radius: 10px;

    font-size: 17px;

    font-weight: 600;

    cursor: pointer;
}


.primary-button:hover {

    background: #e95708;
}


.cancel-button {

    display: inline-block;

    margin-left: 8px;

    padding: 12px 22px;

    background: #eee;

    color: #333;

    text-decoration: none;

    border-radius: 10px;
}


/* Messages */

.success-message {

    background: #e8f8ef;

    color: #16804e;

    border: 1px solid #a9dfc1;

    padding: 14px 18px;

    border-radius: 10px;

    margin-bottom: 20px;

    font-weight: 600;
}


.error-message {

    background: #fff0f0;

    color: #d22f2f;

    border: 1px solid #f0b5b5;

    padding: 14px 18px;

    border-radius: 10px;

    margin-bottom: 20px;

    font-weight: 600;
}


/* Search */

.search-box {

    background: white;

    padding: 18px;

    border-radius: 15px;

    border: 1px solid #eadcc6;

    margin-bottom: 20px;
}


.search-box form {

    display: flex;

    gap: 10px;
}


.search-box input {

    flex: 1;

    padding: 13px;

    border: 1px solid #d9ccb9;

    border-radius: 9px;

    font-size: 16px;
}


.search-box button {

    border: none;

    background: #ff6500;

    color: white;

    padding: 12px 22px;

    border-radius: 9px;

    font-weight: 600;

    cursor: pointer;
}


.search-box a {

    display: flex;

    align-items: center;

    padding: 0 12px;

    color: #e95708;

    text-decoration: none;
}


/* Table */

.table-wrapper {

    overflow-x: auto;
}


table {

    width: 100%;

    border-collapse: collapse;

    min-width: 750px;
}


th {

    background: #fff2e5;

    color: #26354d;

    text-align: left;

    padding: 15px;

    font-size: 16px;
}


td {

    padding: 14px 15px;

    border-bottom: 1px solid #eee5d9;

    font-size: 15px;
}


tr:hover td {

    background: #fffaf5;
}


.status-badge {

    display: inline-block;

    padding: 6px 12px;

    border-radius: 20px;

    font-size: 13px;

    font-weight: 600;
}


.status-badge.active {

    background: #e5f8ed;

    color: #17834f;
}


.status-badge.inactive {

    background: #f2f2f2;

    color: #777;
}


.edit-button {

    text-decoration: none;

    color: #0873cc;

    font-weight: 600;

    margin-right: 10px;
}


.delete-button {

    border: none;

    background: transparent;

    color: #e33434;

    font-weight: 600;

    cursor: pointer;

    font-size: 15px;
}


.no-data {

    text-align: center;

    padding: 35px;

    color: #777;
}


/* Mobile */

@media (max-width: 700px) {

    .form-grid {

        grid-template-columns: 1fr;
    }

    .full-width {

        grid-column: auto;
    }

    .search-box form {

        flex-wrap: wrap;
    }

    .search-box input {

        width: 100%;

        flex: none;
    }

}

/* ==========================================
   INCOME PAGE
========================================== */

.income-total-card {

    background:
        linear-gradient(
            135deg,
            #20a66a,
            #168c59
        );

    color: white;

    border-radius: 18px;

    padding: 22px 30px;

    margin-bottom: 25px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 23px;

    box-shadow:
        0 6px 18px rgba(22,140,89,0.15);
}


.income-total-card strong {

    font-size: 35px;
}


@media (max-width: 600px) {

    .income-total-card {

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }

}

/* =========================
   EXPENSE PAGE
========================= */

.expense-total-card {
    background: linear-gradient(135deg, #dc3545, #b52a38);
    color: white;
    border-radius: 18px;
    padding: 22px 30px;
    margin-bottom: 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 23px;

    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.15);
}

.expense-total-card strong {
    font-size: 35px;
}


.expense-color {
    color: #dc3545;
}


@media (max-width: 600px) {

    .expense-total-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .expense-total-card strong {
        font-size: 28px;
    }

}

/* =========================
   DONATION PAGE
========================= */

.donation-total-card {
    background: linear-gradient(135deg, #f39c12, #d98200);
    color: white;

    border-radius: 18px;

    padding: 22px 30px;
    margin-bottom: 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 23px;

    box-shadow: 0 6px 18px rgba(217, 130, 0, 0.15);
}

.donation-total-card strong {
    font-size: 35px;
}

.donation-color {
    color: #e67e22;
}


@media (max-width: 700px) {

    .donation-total-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .donation-total-card strong {
        font-size: 28px;
    }

}

/* =========================
   REPORTS
========================= */

.report-filter {
    background: #fff;
    padding: 22px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.report-date-group {
    display: flex;
    align-items: end;
    gap: 15px;
    flex-wrap: wrap;
}

.report-date-group > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.report-date-group label {
    font-weight: 600;
    color: #555;
}

.report-date-group input {
    padding: 11px 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.print-button {
    border: none;
    background: #555;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

.print-button:hover {
    opacity: 0.9;
}

.report-period {
    background: #fff8ed;
    border-left: 5px solid #f39c12;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #555;
}


/* SUMMARY */

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.report-card {
    padding: 22px;
    border-radius: 16px;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.report-card span {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
}

.report-card strong {
    font-size: 28px;
}

.income-report {
    background: linear-gradient(135deg, #20a66a, #168c59);
}

.expense-report {
    background: linear-gradient(135deg, #dc3545, #b52a38);
}

.donation-report {
    background: linear-gradient(135deg, #f39c12, #d98200);
}

.balance-report {
    background: linear-gradient(135deg, #e67e22, #c65d0c);
}


/* TWO COLUMNS */

.report-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.report-table-title {
    font-size: 20px;
    font-weight: 700;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
}


/* TRANSACTION TYPE */

.report-type {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.income-type {
    background: #dff6e9;
    color: #168c59;
}

.expense-type {
    background: #fde2e5;
    color: #c52d3d;
}

.donation-type {
    background: #fff0d6;
    color: #c47700;
}


/* MOBILE */

@media (max-width: 900px) {

    .report-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-columns {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .report-summary-grid {
        grid-template-columns: 1fr;
    }

    .report-date-group {
        flex-direction: column;
        align-items: stretch;
    }

    .report-date-group .primary-button,
    .report-date-group .print-button {
        width: 100%;
    }

}


/* PRINT */

@media print {

    .navigation,
    .report-filter,
    .print-button {
        display: none !important;
    }

    .top-header {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .container {
        width: 100%;
        max-width: none;
    }

    .table-card,
    .report-card {
        box-shadow: none;
    }

}

/* =========================
   SETTINGS
========================= */

.settings-card {
    max-width: 800px;
    margin-bottom: 25px;
}

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

.settings-card textarea {
    width: 100%;
    resize: vertical;
    box-sizing: border-box;
}


.settings-info {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.settings-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}


.settings-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    padding: 15px 0;

    border-bottom: 1px solid #eeeeee;
}

.settings-info-row:last-child {
    border-bottom: none;
}

.settings-info-row span {
    color: #777;
    font-weight: 600;
}

.settings-info-row strong {
    color: #333;
    text-align: right;
    max-width: 60%;
}


@media (max-width: 600px) {

    .settings-info-row {
        flex-direction: column;
        gap: 7px;
    }

    .settings-info-row strong {
        text-align: left;
        max-width: 100%;
    }

}

.logout-link {
    background: #c0392b !important;
    color: #fff !important;
    padding: 8px 14px !important;
    border-radius: 7px;
}

.logout-link:hover {
    background: #a93226 !important;
}

/* ==========================================
   ADMIN HEADER / UPDATED DASHBOARD
========================================== */

.brand {
    position: relative;
    z-index: 2;
}

.brand h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.brand p {
    font-size: 24px;
    font-weight: 600;
    word-spacing: 8px;
    margin: 0;
}

.admin-area {
    position: absolute;
    top: 18px;
    right: 25px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.logout-link {
    display: inline-block;
    text-decoration: none;
    background: #c0392b !important;
    color: #fff !important;
    padding: 8px 14px !important;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
}

.logout-link:hover {
    background: #a93226 !important;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.nav-container a {
    text-decoration: none;
    color: #26354d;
    font-size: 19px;
    font-weight: 600;
    padding: 14px 25px;
    border-radius: 20px;
    transition: 0.25s;
}

.nav-container a:hover {
    background: #fff0df;
    color: #f45b00;
}

.nav-container a.active {
    background: #ff6500;
    color: white;
    box-shadow: 0 5px 12px rgba(255,101,0,0.20);
}

.header-date {
    position: relative;
    z-index: 2;
    font-size: 25px;
    font-weight: 600;
    margin-top: 18px;
}

.site-footer {
    text-align: center;
    padding: 25px 15px;
    margin-top: 40px;
    color: #777;
    font-size: 14px;
}

@media (max-width: 700px) {

    .top-header {
        padding: 30px 15px 22px;
    }

    .brand h1 {
        font-size: 37px;
    }

    .brand p {
        font-size: 19px;
    }

    .admin-area {
        position: static;
        justify-content: center;
        margin-top: 15px;
        flex-wrap: wrap;
    }

    .admin-name {
        font-size: 13px;
    }

    .header-date {
        font-size: 18px;
        margin-top: 15px;
    }

    .nav-container {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0;
    }

    .nav-container a {
        flex-shrink: 0;
        font-size: 16px;
        padding: 12px 17px;
    }
}
