/* =========================================================================
   Base Styles & Typography
   ========================================================================= */

:root {
    --primary-color: #4CAF50;
    --secondary-color: #8BC34A;
    --background-color: #f7f7f7;
    --text-color: #333;
    --light-gray: #ccc;
    --white: #fff;
    --card-bg: #ffffff;
    --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 6px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--text-color);
    margin-top: 0;
}

.page-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

/* =========================================================================
   Header & Navigation
   ========================================================================= */

.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-light);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* =========================================================================
   Buttons & Links
   ========================================================================= */

.btn {
    display: inline-block;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #43A047;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #7CB342;
    transform: translateY(-2px);
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 0;
}

.btn-link:hover {
    text-decoration: underline;
}

/* =========================================================================
   Dashboard Specific Styles
   ========================================================================= */

.page-content {
    padding: 40px 0;
}

.impact-counter-section {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
    text-align: center;
}

.impact-counters {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.counter-item {
    flex-basis: calc(33.333% - 20px);
    max-width: 250px;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.counter {
    font-size: 3em;
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.counter-item h3 {
    font-size: 1.1em;
    margin: 0;
}

.log-activity-section {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
    text-align: center;
}

.log-activity-section h2,
.log-activity-section p {
    margin-bottom: 15px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dashboard-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.dashboard-card h2 {
    font-size: 1.5em;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.badge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.badge-item {
    text-align: center;
    flex: 1 0 auto;
    max-width: 100px;
}

.badge-item img {
    width: 60px;
    height: auto;
    margin-bottom: 5px;
}

.upcoming-trip {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.upcoming-trip img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.trip-details h3 {
    margin: 0 0 5px;
    font-size: 1.2em;
}

.trip-details p {
    margin: 0;
    font-size: 0.9em;
}

hr {
    border: none;
    height: 1px;
    background-color: var(--light-gray);
    margin: 40px 0;
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
    background-color: var(--text-color);
    color: var(--light-gray);
    padding: 40px 0;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col a {
    text-decoration: none;
    color: var(--light-gray);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
}

.social-icons img {
    width: 24px;
    height: 24px;
}

.copyright {
    text-align: center;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================================================
   Responsive Design
   ========================================================================= */

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .impact-counters,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .counter-item {
        flex-basis: 100%;
        max-width: none;
    }

    .upcoming-trip {
        flex-direction: column;
        text-align: center;
    }
}