/* Base Styles */
:root {
    --primary-color: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #81c784;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --light-text: #777;
    --white: #ffffff;
    --success-color: #4caf50;
    --pending-color: #ff9800;
    --failed-color: #f44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-donate {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-donate:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

.about-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

.focus-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.focus-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.focus-card:hover {
    transform: translateY(-5px);
}

.focus-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.focus-card h3 {
    padding: 15px 20px 0;
    color: var(--primary-dark);
}

.focus-card p {
    padding: 10px 20px 20px;
    color: var(--light-text);
}

/* Projects Section */
.projects-section {
    padding: 60px 0;
}

.projects-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* Impact Section */
.impact-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

.impact-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

.impact-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    min-width: 200px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Donation Form Styles */
.donation-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.donation-container h1 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    text-align: center;
}

.donation-container p {
    color: var(--light-text);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
}

.modal-content h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-align: center;
}

.account-details {
    margin: 20px 0;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 5px;
}

.currency-details h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.currency-details p {
    margin-bottom: 8px;
}

.donation-summary {
    margin-top: 30px;
    padding: 15px;
    background-color: #e8f5e9;
    border-radius: 5px;
}

.donation-summary h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.donation-summary p {
    margin-bottom: 5px;
}

.modal-note {
    margin: 20px 0;
    padding: 15px;
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
}

.modal-note p {
    color: var(--text-color);
}

.btn-done {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-done:hover {
    background-color: var(--primary-dark);
}

/* Thank You Page */
.thankyou-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.thankyou-content h1 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.thankyou-content p {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.donation-receipt {
    margin: 30px 0;
    padding: 20px;
    background-color: #e8f5e9;
    border-radius: 5px;
    text-align: left;
}

.donation-receipt p {
    margin-bottom: 10px;
    color: var(--text-color);
}

.next-steps {
    margin: 40px 0;
    text-align: left;
}

.next-steps h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.next-steps ul {
    margin-left: 20px;
}

.next-steps li {
    margin-bottom: 10px;
    color: var(--light-text);
}

.btn-home {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background-color: var(--primary-dark);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p, .footer-section a {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* Admin Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 20px 0;
}

.admin-sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-nav ul {
    list-style: none;
    padding: 20px 0;
}

.admin-sidebar-nav li {
    margin-bottom: 5px;
}

.admin-sidebar-nav a {
    display: block;
    padding: 10px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
}

.admin-sidebar-nav i {
    margin-right: 10px;
}

.admin-content {
    flex: 1;
    padding: 30px;
    background-color: #f5f7fa;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.admin-header h1 {
    color: var(--primary-dark);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stat-card h3 {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.currency-list {
    list-style: none;
}

.currency-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.cause-breakdown {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.cause-breakdown h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background-color: #f5f5f5;
    color: var(--primary-dark);
    font-weight: 600;
}

.status-pending {
    color: var(--pending-color);
}

.status-completed {
    color: var(--success-color);
}

.status-failed {
    color: var(--failed-color);
}

.btn-view, .btn-export, .btn-filter {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-view:hover, .btn-export:hover, .btn-filter:hover {
    background-color: var(--primary-dark);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-prev, .btn-next {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-prev:hover, .btn-next:hover {
    background-color: var(--primary-dark);
}

.export-options {
    margin-top: 40px;
    text-align: center;
}

.export-options h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.btn-export {
    margin: 0 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .footer-section {
        flex: 100%;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}

.bg-success { background-color: #28a745!important; }
.bg-warning { background-color: #ffc107!important; }
.bg-danger { background-color: #dc3545!important; }