/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Top Bar */
.top-bar {
    background: #2E7D32;
    color: white;
    padding: 0.5rem 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-selector {
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
}

.language-selector option {
    background: #2E7D32;
    color: white;
}

.auth-links a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

.user-name {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

/* Header and Navigation */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: #2E7D32;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2E7D32;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #2E7D32;
}

.cart a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin: 2rem 0;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    color: #2E7D32;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
}

/* Market Prices Section */
.market-prices {
    background: #f9f9f9;
    padding: 4rem 2rem;
}

.market-prices h2 {
    text-align: center;
    color: #2E7D32;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.price-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.price-card h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: #2E7D32;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    background: #2E7D32;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #1b5e20;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #2E7D32;
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: white;
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
}

.subscribe-btn {
    background: #1B5E20;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.subscribe-btn:hover {
    background: #0D3F10;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .subscribe-btn {
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .hero {
        padding: 6rem 1rem;
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

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

    .price-table {
        grid-template-columns: 1fr;
    }
}

/* Featured Programs Section */
.featured-programs {
    background-color: #ffffff;
    padding: 4rem 2rem;
    margin-bottom: 30px;
}

.featured-programs h2 {
    text-align: center;
    color: #2E7D32;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.programs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.program-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.program-card h3 {
    padding: 1rem;
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.program-card p {
    padding: 0 1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.program-card .price {
    font-weight: bold;
    color: #2E7D32;
    font-size: 1.1rem;
}

.program-card .add-to-cart-btn {
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    padding: 0.8rem;
    background-color: #2E7D32;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.program-card .add-to-cart-btn:hover {
    background-color: #1B5E20;
}

@media (max-width: 992px) {
    .programs-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .programs-container {
        grid-template-columns: 1fr;
    }
    
    .featured-programs {
        padding: 2rem 1rem;
    }
    
    .featured-programs h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Market News Section */
.market-news {
    padding: 4rem 2rem;
    background: #ffffff;
}

.market-news h2 {
    text-align: center;
    color: #2E7D32;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.market-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Market Updates */
.market-updates {
    background: #f0f7f0;
    padding: 2rem;
    border-radius: 10px;
}

.market-updates h3 {
    color: #2E7D32;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.news-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-item .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-item h4 {
    color: #1b5e20;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.news-item p {
    color: #333;
    line-height: 1.5;
}

/* Price Trends */
.price-trends {
    background: #2E7D32;
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

.price-trends h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.commodity {
    font-weight: 500;
}

.price {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price.increase {
    color: #4caf50;
}

.price.decrease {
    color: #f44336;
}

.price.stable {
    color: #ffd700;
}

/* Responsive Design for Market News */
@media (max-width: 768px) {
    .market-container {
        grid-template-columns: 1fr;
    }

    .market-news {
        padding: 2rem 1rem;
    }

    .market-news h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .price-item {
        padding: 0.6rem;
    }
}

/* AI-Powered Solutions Section */
.ai-solutions {
    padding: 4rem 2rem;
    background: #ffffff;
}

.ai-solutions h2 {
    text-align: center;
    color: #2E7D32;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.ai-solutions-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ai-solution-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ai-solution-card:hover {
    transform: translateY(-5px);
}

.solution-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.ai-solution-card h3 {
    color: #2E7D32;
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
}

.ai-solution-card p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    line-height: 1.5;
}

/* Responsive Design for AI Solutions */
@media (max-width: 768px) {
    .ai-solutions-grid {
        grid-template-columns: 1fr;
    }

    .ai-solutions {
        padding: 2rem 1rem;
    }

    .ai-solutions h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .ai-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Join Community Section */
.join-community {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.join-community h2 {
    text-align: center;
    color: #2E7D32;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.registration-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.1);
}

.register-button {
    width: 100%;
    padding: 1rem;
    background: #2E7D32;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.register-button:hover {
    background: #1b5e20;
}

/* Responsive Design for Join Community */
@media (max-width: 768px) {
    .join-community {
        padding: 2rem 1rem;
    }

    .join-community h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .registration-form {
        padding: 1.5rem;
    }
}

/* Authentication Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal h2 {
    color: #2E7D32;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-message {
    margin: 1rem 0;
    padding: 0.5rem;
    border-radius: 5px;
    display: none;
}

.auth-message.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.auth-message.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.auth-button {
    width: 100%;
    padding: 1rem;
    background: #2E7D32;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.auth-button:hover {
    background: #1b5e20;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.auth-switch a {
    color: #2E7D32;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Add this to your existing media queries */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
    }
}

/* Profile Page Styles - Mobile First */
.profile-section {
    padding: 2rem 1rem;
    background: #f9f9f9;
}

.profile-section h2 {
    color: #2E7D32;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.profile-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(to right, #2E7D32, #43a047);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.profile-image {
    position: relative;
    width: 100px;
    height: 100px;
}

#profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.change-photo-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #2E7D32;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.change-photo-btn:hover {
    background: #1b5e20;
    transform: scale(1.1);
}

.profile-user-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.profile-user-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.profile-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.tab-btn {
    flex: 1;
    min-width: 80px;
    background: none;
    border: none;
    padding: 0.75rem 0.5rem;
    color: #555;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.tab-btn:hover {
    color: #2E7D32;
    background: rgba(46, 125, 50, 0.05);
}

.tab-btn.active {
    color: #2E7D32;
    background: rgba(46, 125, 50, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: #2E7D32;
    border-radius: 3px 3px 0 0;
}

/* Loading State */
.profile-loading {
    padding: 2rem;
    text-align: center;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(46, 125, 50, 0.1);
    border-top: 3px solid #2E7D32;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Styles */
.tab-content {
    display: none;
    padding: 1.5rem;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #2E7D32;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-item:hover {
    background-color: rgba(46, 125, 50, 0.05);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2E7D32;
    cursor: pointer;
}

/* Activity Section */
.activity-empty {
    text-align: center;
    padding: 2rem 0;
    color: #777;
}

.activity-icon {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

/* Form Actions */
.form-actions {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: #f9f9f9;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.save-profile-btn {
    background: #2E7D32;
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.save-profile-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

.save-profile-btn:active {
    transform: translateY(0);
}

#profile-error {
    margin: 1.5rem;
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.retry-btn {
    background: #c62828;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-top: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.retry-btn:hover {
    background: #b71c1c;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
    margin-left: auto;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #2E7D32;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 999;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.5s ease forwards;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Animation for menu items */
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Animate hamburger to X */
    .mobile-menu-btn.active span:first-child {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:last-child {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .profile-section {
        padding: 3rem 2rem;
    }
    
    .profile-section h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .profile-header {
        flex-direction: row;
        justify-content: flex-start;
        padding: 2rem;
        text-align: left;
    }
    
    .profile-user-info {
        margin-left: 1.5rem;
    }
    
    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-btn {
        font-size: 0.9rem;
        padding: 1rem 0.75rem;
    }
    
    .tab-btn i {
        font-size: 1.4rem;
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .profile-card {
        max-width: 900px;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    #profile-picture {
        width: 120px;
        height: 120px;
    }
    
    .profile-user-info h3 {
        font-size: 1.6rem;
    }
    
    .profile-user-info p {
        font-size: 1rem;
    }
    
    .checkbox-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tab-content {
        padding: 2rem;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        padding: 1rem;
        display: block;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding-left: 1rem;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* Admin Dashboard Styles */
.admin-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .admin-container {
        flex-direction: row;
    }
}

.admin-sidebar {
    background-color: #2c3e50;
    color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .admin-sidebar {
        width: 250px;
        margin-bottom: 0;
        margin-right: 20px;
    }
}

.admin-sidebar h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav li {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.admin-nav li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-nav li.active {
    background-color: #4CAF50;
}

.admin-nav li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
}

.admin-tab h2 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-card i {
    font-size: 2.5rem;
    color: #2e7d32;
    margin-right: 15px;
}

.stat-card .stat-info {
    flex: 1;
}

.stat-card h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #555;
}

.stat-card p {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2e7d32;
}

.recent-activity, .users-table, .content-list, .resources-list {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
    margin-top: 0;
    color: #2c3e50;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.admin-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-controls input, .admin-controls select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f7f7f7;
    font-weight: bold;
    color: #2c3e50;
}

.table-loading {
    text-align: center;
    color: #666;
    padding: 20px;
}

.admin-form {
    max-width: 600px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #4CAF50;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

.admin-error {
    text-align: center;
    padding: 40px;
    color: #721c24;
    background-color: #f8d7da;
    border-radius: 8px;
}

.admin-error h3 {
    color: #721c24;
}

.admin-error i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #721c24;
}

/* Admin Dashboard Activities */
.activity-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    font-size: 0.8rem;
    color: #777;
}

.activity-description {
    color: #333;
}

.activity-description strong {
    color: #2E7D32;
}

.text-success {
    color: #4CAF50;
}

.text-danger {
    color: #F44336;
}

/* Admin Button Styles */
.btn {
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-outline-primary {
    color: #2196F3;
    border: 1px solid #2196F3;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #2196F3;
    color: white;
}

.btn-outline-danger {
    color: #F44336;
    border: 1px solid #F44336;
    background-color: transparent;
}

.btn-outline-danger:hover {
    background-color: #F44336;
    color: white;
}

/* Resource Status Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.badge-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.badge-warning {
    background-color: #fff8e1;
    color: #ff8f00;
    border: 1px solid #ffe082;
}

.badge-danger {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Resources Table */
.resources-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.resources-table th,
.resources-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.resources-table th {
    background-color: #f7f7f7;
    font-weight: 600;
    color: #2c3e50;
}

.resources-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Resource Modal */
#resource-modal .modal-content {
    max-width: 700px;
    width: 90%;
}

#resource-modal textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
}

#resource-modal textarea:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.1);
}

.checkbox-wrapper {
    margin-top: 5px;
}

.checkbox-wrapper label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

#save-resource-btn {
    background-color: #2E7D32;
    color: white;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
}

#save-resource-btn:hover {
    background-color: #1b5e20;
}

.empty-state, .error-message {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
}

/* User Count Details */
.count-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    border-bottom: 1px dashed #eee;
}

.count-label {
    font-size: 0.8rem;
    color: #666;
}

.count-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2E7D32;
}

.stat-info p {
    margin: 0;
}

/* Dashboard Stat Number */
.stat-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.stat-details {
    margin-top: 5px;
}

/* Programs Page Styles */
.programs-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/programs_hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.programs-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.programs-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.program-category {
    padding: 5rem 2rem;
}

.livestock-section {
    background-color: #f9f9f9;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-header h2 {
    color: #2E7D32;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
    font-size: 1.1rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.program-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.program-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image {
    transform: scale(1.05);
}

.program-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #2E7D32;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.program-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-content h3 {
    color: #2E7D32;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.program-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.program-meta i {
    color: #2E7D32;
    margin-right: 0.25rem;
}

.program-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.program-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.program-features span {
    color: #444;
    font-size: 0.9rem;
}

.program-features i {
    color: #2E7D32;
    margin-right: 0.5rem;
}

.program-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.program-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2E7D32;
}

.add-to-cart-btn {
    background: #2E7D32;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.enroll-btn {
    background: #2E7D32;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.enroll-btn:hover {
    background: #1b5e20;
}

.category-footer {
    text-align: center;
    margin-top: 3rem;
}

.view-more-btn {
    background: none;
    border: 2px solid #2E7D32;
    color: #2E7D32;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-more-btn:hover {
    background: #2E7D32;
    color: white;
}

.view-more-btn i {
    transition: transform 0.3s;
}

.view-more-btn:hover i {
    transform: translateX(5px);
}

/* Program Benefits Section */
.program-benefits {
    padding: 5rem 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('assets/benefits-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.program-benefits h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.benefit-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 2rem;
    background: #f9f9f9;
    text-align: center;
}

.testimonials h2 {
    color: #2E7D32;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.testimonial-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    display: flex;
    overflow-x: hidden;
}

.testimonial-card {
    min-width: 100%;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .testimonial-card {
        flex-direction: row;
        text-align: left;
        padding: 2rem;
    }
}

.testimonial-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #2E7D32;
    flex-shrink: 0;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    flex-grow: 1;
}

.testimonial-rating {
    margin-bottom: 1rem;
    color: #FFC107;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.testimonial-author h4 {
    color: #2E7D32;
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: #2E7D32;
}

/* Programs CTA Section */
.programs-cta {
    background: #2E7D32;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.programs-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.programs-cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: #2E7D32;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Responsive Design for Programs Page */
@media (max-width: 768px) {
    .programs-hero h1 {
        font-size: 2.5rem;
    }
    
    .programs-hero p {
        font-size: 1rem;
    }
    
    .category-header h2 {
        font-size: 2rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .program-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .program-benefits {
        padding: 3rem 1rem;
        background-attachment: scroll;
    }
    
    .programs-cta h2 {
        font-size: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Cart Page Styles */
.cart-section {
    padding: 4rem 2rem;
}

.cart-section h1 {
    color: #2E7D32;
    margin-bottom: 2rem;
    text-align: center;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cart-container {
        grid-template-columns: 2fr 1fr;
    }
}

#cart-items {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

@media (min-width: 576px) {
    .cart-item {
        flex-direction: row;
        align-items: center;
    }
}

.cart-item-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

@media (min-width: 576px) {
    .cart-item-image {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    color: #2E7D32;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 600;
    color: #333;
}

.cart-item-type {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 576px) {
    .cart-item-actions {
        margin-top: 0;
    }
}

.remove-item-btn {
    background: none;
    border: none;
    color: #e53935;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-item-btn i {
    margin-right: 0.25rem;
}

.remove-item-btn:hover {
    color: #c62828;
    text-decoration: underline;
}

.cart-summary {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    align-self: flex-start;
}

.cart-summary h3 {
    color: #2E7D32;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #555;
}

.summary-row.total {
    font-weight: 700;
    color: #333;
    font-size: 1.2rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.checkout-btn, .continue-shopping-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-btn {
    background: #2E7D32;
    color: white;
    margin-bottom: 1rem;
}

.checkout-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.checkout-btn:active {
    transform: translateY(0);
}

.continue-shopping-btn {
    background: #f5f5f5;
    color: #333;
}

.continue-shopping-btn:hover {
    background: #e0e0e0;
}

.loading-spinner {
    border: 4px solid rgba(46, 125, 50, 0.1);
    border-top: 4px solid #2E7D32;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-cart i {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

.empty-cart h2 {
    color: #555;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #777;
    margin-bottom: 2rem;
}

.empty-cart .cta-button {
    display: inline-block;
    text-decoration: none;
}

.thank-you-content {
    text-align: center;
    padding: 20px 0;
}

.thank-you-content i {
    font-size: 4rem;
    color: #2e7d32;
    margin-bottom: 20px;
}

.thank-you-content h2 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.thank-you-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

#confirmation-email {
    font-weight: bold;
    color: #2e7d32;
}

.confirmation-note {
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid #2e7d32;
}

/* Contact Page Styles */
.contact-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.contact-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-section {
    padding: 4rem 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info, .contact-message {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h2, .contact-message h2 {
    color: #2E7D32;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-info > p {
    margin-bottom: 2rem;
    color: #555;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #2E7D32;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.3rem;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.contact-details p {
    margin: 0;
    color: #555;
}

.contact-details a {
    color: #2E7D32;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: #1b5e20;
    text-decoration: underline;
}

.contact-hours {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.contact-hours h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-hours p {
    margin: 0.5rem 0;
    color: #555;
}

.contact-message form {
    display: flex;
    flex-direction: column;
}

.contact-message .form-group {
    margin-bottom: 1.5rem;
}

.contact-message label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.contact-message input,
.contact-message textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.contact-message textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    background: #2E7D32;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-submit-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* Checkout Modal Styles */
.checkout-modal-content {
    max-width: 600px;
    padding: 30px;
}

.checkout-steps {
    width: 100%;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

.checkout-step h2 {
    margin-bottom: 20px;
    color: #2e7d32;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.checkout-form {
    width: 100%;
}

.checkout-btn, .complete-order-btn {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    width: 100%;
    transition: background-color 0.3s;
}

.checkout-btn:hover, .complete-order-btn:hover {
    background-color: #1b5e20;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #757575;
    font-size: 0.8rem;
}

/* Mpesa Instructions */
.mpesa-instructions {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.mpesa-amount {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #dddddd;
}

.mpesa-amount h3 {
    margin-bottom: 5px;
    color: #555;
}

.mpesa-amount p {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2e7d32;
}

.mpesa-steps h3 {
    margin-bottom: 10px;
    color: #555;
}

.mpesa-steps ol {
    padding-left: 20px;
}

.mpesa-steps li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.mpesa-steps strong {
    color: #2e7d32;
}

.mpesa-confirmation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #dddddd;
}

.mpesa-confirmation h3 {
    margin-bottom: 15px;
    color: #555;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .checkout-modal-content {
        padding: 20px;
    }
    
    .mpesa-amount p {
        font-size: 1.5rem;
    }
}

/* Additional styles for user management table */
.users-table {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    display: block;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* Ensure the table is wide enough on small screens */
}

.users-table th,
.users-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.users-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.users-table tr:hover {
    background-color: #f5f5f5;
}

.table-loading {
    text-align: center;
    padding: 30px !important;
    color: #666;
}

.loading-message {
    display: inline-block;
    position: relative;
    padding-left: 25px;
}

.loading-message:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #4caf50;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-message {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 15px !important;
    text-align: center;
}

.empty-message {
    color: #666;
    padding: 30px !important;
    text-align: center;
    font-style: italic;
    background-color: #f9f9f9;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.text-success {
    color: #4caf50;
    font-weight: 600;
}

.text-danger {
    color: #d32f2f;
    font-weight: 600;
}

/* Fix for admin tab display - make sure tab content is visible when active */
.admin-tab {
    display: none !important; /* Force hiding by default */
}

.admin-tab.active {
    display: block !important; /* Force showing when active */
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Make sure users table is visible when needed */
.users-table {
    display: block !important;
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}