/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7fc;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    min-height: 100vh;
    box-sizing: border-box;
}

h2 {
    color: #5A2DFF;
    margin-bottom: 15px;
    font-size: 1.8rem;
    text-align: center;
}

/* Container */
.container {
    max-width: 500px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
}

label {
    text-align: left;
    font-size: 13px;
    margin-bottom: 4px;
    color: #555;
    font-weight: 500;
}

input, textarea, button {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #333;
}

textarea {
    resize: vertical;
    min-height: 60px;
}

button {
    background: #5A2DFF;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 600;
}

button:hover {
    background: #3f1db2;
}

button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Form Section */
.form-section {
    margin-bottom: 15px;
}

/* Item Row Styling */
.item-row {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.item-row input {
    flex: 1;
}

.item-row button {
    width: 28px;
    height: 28px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 0;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.item-row button:hover {
    background-color: #c0392b;
}

#addItem {
    background: #2ecc71;
    color: white;
    font-weight: bold;
    margin-top: 10px;
    padding: 10px;
    transition: background 0.3s;
}

#addItem:hover {
    background: #27ae60;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.button-container button {
    flex: 1;
}

/* Receipt Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    text-align: left;
    position: relative;
    overflow-y: auto;
    max-height: 80vh;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* Loader */
#loader {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #5A2DFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h2 {
        font-size: 1.5rem;
    }

    label {
        font-size: 12px;
    }

    input, textarea, button {
        font-size: 13px;
    }

    .modal-content {
        padding: 15px;
        width: 100%;
        max-height: 70vh;
    }
}
.donation-section {
	background: #E9DCC9;
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    color: #555;
}

footer {
    text-align: center;
    padding: 7px;
    background: #E9DCC9;
    color: #333;
    font-size: 14px;
}

footer a {
    color: #5A2DFF;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}
