/* ================== Global Styles ================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fdf6f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

h2 {
    color: #a5678f;
    font-size: 1.8em;
    margin-bottom: 10px;
}

h3 {
    color: #c98eb2;
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 10px;
}

p {
    font-size: 14px;
}

a {
    color: #a5678f;
    text-decoration: none;
    margin-right: 15px;
}

a:hover {
    text-decoration: underline;
}

/* ================== Forms ================== */
form input, form select, form textarea, form button {
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #c98eb2;
    border-radius: 5px;
    font-size: 14px;
}

form button {
    background-color: #a5678f;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background-color: #c98eb2;
}

/* ================== Tables ================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

th, td {
    border: 1px solid #f0dff2;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

th {
    background-color: #f7e7f0;
    color: #a5678f;
}

tr:nth-child(even) {
    background-color: #fdf0f8;
}

tr:hover {
    background-color: #f7e7f0;
}

table img {
    max-width: 60px;
    height: auto;
    border-radius: 5px;
}

/* ================== Buttons ================== */
button {
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

/* ================== Charts ================== */
canvas {
    display: block;
    max-width: 100%;
    height: 400px;
    margin: 0 auto;
}

/* ================== Responsive Styles ================== */
@media (max-width: 1024px) {
    body {
        padding: 15px;
    }

    table, th, td {
        font-size: 13px;
    }

    input, select, button, textarea {
        width: 100%;
        box-sizing: border-box;
    }

    h2, h3 {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    table img {
        max-width: 50px;
    }

    canvas {
        width: 100% !important;
        height: auto !important;
    }

    form label {
        display: block;
        margin-top: 10px;
    }

    form input, form select, form button, form textarea {
        width: 100%;
    }

    p a {
        display: block;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    h2, h3 {
        font-size: 1.2em;
    }

    button {
        font-size: 14px;
        padding: 6px 10px;
    }

    table th, table td {
        padding: 6px;
    }

    #expensesTable img {
        max-width: 40px;
    }
}

/* ================== Admin Page ================== */
.admin-form input, .admin-form select, .admin-form button {
    margin-bottom: 10px;
}

/* ================== Notifications ================== */
.success {
    color: #2d7a2d;
}

.error {
    color: #a12d2d;
}

/* ================== Misc ================== */
img {
    border-radius: 5px;
    max-height: 60px;
}

a.button-link {
    background-color: #a5678f;
    color: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
}

a.button-link:hover {
    background-color: #c98eb2;
}