:root {
    --primary-color: #4CAF50;
    --secondary-color: #388E3C;
    --accent-color: #81C784;
    --text-color: #2c3e50;
    --light-bg: #F1F8E9;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
    width: 40px;
    border-width: 0.135em;
    border-style: solid;
}

.brand-name {
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-middle {
    display: flex;
    gap: 2rem;
}

.nav-middle a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-middle a:hover,
.nav-middle a.active {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.icon-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding-top: 0.3rem;
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    margin-top: 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background-image: url('./assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-family: 'Rubik Distressed', cursive;
    font-size: 4rem;
    font-weight: 30;
    margin-bottom: 2rem;
    color: #5bb660;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtext h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2e7d32;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtext p {
    font-size: 1.2rem;
    color: white;
    opacity: 0.9;
}

/* Fix It Yourself Hero Section */
.fiy-hero {
    margin-top: 74px;
    min-height: 50vh;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-bg) 0%, #E8F5E9 100%);
    text-align: center;
    width: 100%;
}

.fiy-hero .hero-content {
    width: 100%;
    max-width: 800px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.fiy-hero h1 {
    font-family: 'Rubik Distressed', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.fiy-hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 800px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.stat-item i {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

@media (max-width: 768px) {
    .fiy-hero {
        min-height: 40vh;
        padding: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .stat-item {
        justify-content: center;
    }
}

/* Tips Section */
.tips-section {
    padding: 4rem 0;
    overflow: hidden;
    width: 100%;
    background: var(--card-bg);
}

.tips-section h2 {
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-color);
    text-align: center;
    line-height: 1.3;
}

.tips-container {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    animation: scroll 40s linear infinite;
    width: fit-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 0.5rem));
    }
}

.tips-container:hover {
    animation-play-state: paused;
}

.tip-card {
    flex: 0 0 300px;
    min-width: 300px;
    max-width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px;
    transition: transform 0.3s ease;
    position: relative;
}

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

.tip-card .card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px 12px 0 0;
}

.tip-card h3 {
    padding: 1rem 1rem 0.5rem 1rem;
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
    height: auto;
    min-height: 3.6rem;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.tip-card p {
    color: #666;
    padding: 0;
    margin: 0 1rem 3.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
}

.see-more {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.see-more:hover {
    color: #219a52;
}

.highlight-card {
    border: 2px solid var(--primary-color);
    background: linear-gradient(to bottom right, #ffffff, #f1f8e9);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent var(--primary-color) transparent transparent;
}

.highlight-card h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.highlight-card .see-more {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.highlight-card .see-more:hover {
    background-color: var(--secondary-color);
}

/* Locations Section */
.locations-section {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.map-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

#map {
    flex: 2;
    min-width: 400px;
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.buttons-container {
    flex: 1;
    min-width: 300px;
}

.buttons-container h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.buttons-container button {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 8px;
    background: #27ae60;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.buttons-container button:hover {
    background: #219a52;
}

.buttons-container button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

button.loading .loading-spinner {
    display: block;
    animation: spin 1s linear infinite;
}

button.loading .button-text {
    margin-right: 2rem;
}

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

.location-status {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: #f8f9fa;
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.location-status::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.location-status.error {
    background: #fee2e2;
    color: #dc2626;
}

.location-status.error::before {
    background-color: #dc2626;
}

.location-status.success {
    background: #ecfdf5;
    color: #059669;
}

.location-status.success::before {
    background-color: #059669;
}

/* Map Info Windows */
.info-window {
    padding: 12px;
    max-width: 300px;
}

.info-window h3 {
    color: var(--primary-color);
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.info-window p {
    margin: 4px 0;
    color: #4a4a4a;
}

.info-window .open {
    color: var(--primary-color);
    font-weight: 500;
}

.info-window .closed {
    color: #dc3545;
    font-weight: 500;
}

/* Map Container */
#map {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Find Centers Button */
#findCentersBtn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 1rem 0;
}

#findCentersBtn:hover {
    background: #219a52;
}

#findCentersBtn:active {
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .map-container {
        flex-direction: column;
    }
    
    #map {
        width: 100%;
        height: 400px;
    }
    
    .buttons-container {
        width: 100%;
    }
}

/* Floating Camera Button */
.floating-camera-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    z-index: 100;
}

.floating-camera-btn:hover {
    transform: scale(1.1);
}

/* Leaderboard Section */
.leaderboard-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.leaderboard-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1.5fr;
    gap: 1rem;
    padding: 1rem;
    background: #4CAF50;
    color: white;
    font-weight: 600;
}

.leaderboard-body {
    padding: 1rem;
}

.leaderboard-entry {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1.5fr;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.leaderboard-entry:last-child {
    border-bottom: none;
}

.rank {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    font-weight: bold;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4CAF50;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    color: #2c3e50;
}

.achievement {
    font-size: 0.875rem;
    color: #666;
}

.points {
    font-weight: 600;
    color: #2e7d32;
}

.impact-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.impact-stats i {
    color: #4CAF50;
    font-size: 1.25rem;
}

/* Top 3 ranks special styling */
.leaderboard-entry:nth-child(1) .rank {
    background: #fef3c7;
    color: #92400e;
}

.leaderboard-entry:nth-child(2) .rank {
    background: #f1f5f9;
    color: #475569;
}

.leaderboard-entry:nth-child(3) .rank {
    background: #fff7ed;
    color: #9a3412;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Event Create Modal Specific Styles */
.event-create-modal {
    max-width: 800px;
}

.event-create-modal h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.form-step {
    display: none;
}

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

/* Search Controls */
.search-controls {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-controls label {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.search-controls input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
    accent-color: #27ae60;
}

.search-controls #radiusValue {
    display: block;
    text-align: right;
    color: #666;
    font-size: 0.9rem;
}

/* Results List */
.results-list {
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    max-height: 300px;
    overflow-y: auto;
}

.results-list:empty {
    display: none;
}

.result-item {
    position: relative;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
}

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

.result-item:hover {
    background: #f8f9fa;
}

.result-item.active {
    background: #dcfce7;
}

.result-item-content {
    overflow: hidden;
}

.result-item h4 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.result-item .rating {
    color: #f59e0b;
    font-size: 0.9rem;
    white-space: nowrap;
}

.result-item .distance {
    color: #27ae60;
    font-size: 0.9rem;
    white-space: nowrap;
}

.result-item .open-status {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.result-item .open-status.open {
    background: #dcfce7;
    color: #16a34a;
}

.result-item .open-status.closed {
    background: #fee2e2;
    color: #dc2626;
}

.filter-controls {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-controls label {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-controls select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    margin-bottom: 1rem;
    color: #2c3e50;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-controls select:hover {
    border-color: #27ae60;
}

.filter-controls select:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.1);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #27ae60;
    cursor: pointer;
}

.results-summary {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-summary:empty {
    display: none;
}

@media (max-width: 768px) {
    .filter-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .filter-controls select {
        grid-column: 1 / -1;
    }
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 300px;
    z-index: 5;
}

.location-status {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

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

.location-status.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.radius-control {
    margin-bottom: 15px;
}

.radius-control label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.radius-control input[type="range"] {
    width: 100%;
    margin: 0;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.button-container button {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-container button:hover {
    background-color: #388E3C;
    transform: translateY(-2px);
}

.button-container button.loading {
    background-color: #78909C;
    pointer-events: none;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

.button-container button.loading .loading-spinner {
    display: inline-block;
}

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

.results-summary {
    font-size: 14px;
    font-weight: 500;
    color: #37474F;
    text-align: center;
    min-height: 20px;
}

.map-container {
    position: relative;
    height: 500px;
    margin-bottom: 50px;
}

#map {
    height: 100%;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#radiusValue {
    font-weight: bold;
    color: #4CAF50;
}

/* Info Windows */
.info-window {
    padding: 12px;
    max-width: 300px;
}

.info-window h3 {
    margin-top: 0;
    color: #2e7d32;
    font-size: 1.1rem;
}

.results-list {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.results-summary {
    margin: 1rem 0;
    font-weight: 500;
    color: #2c3e50;
}

.result-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-item:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.result-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #2e7d32;
}

.result-item .address {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.result-item .rating {
    font-size: 0.8rem;
    color: #888;
}

.no-results, .loading {
    padding: 2rem;
    text-align: center;
    color: #666;
}

/* Camera Modal Styles */
.camera-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

#camera {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.primary-btn, .secondary-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
}

.secondary-btn {
    background: #f0f0f0;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background: #219a52;
}

.secondary-btn:hover {
    background: #e0e0e0;
}

.btn i {
    font-size: 1.1rem;
}

.btn:active {
    transform: translateY(1px);
}

/* Camera Interface */
.camera-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

#video {
    width: 100%;
    border-radius: 8px;
    background: #f8f9fa;
    margin-bottom: 1rem;
}

.camera-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn.primary {
    background: var(--primary-color);
    color: white;
}

.btn.primary:hover {
    background: #219a52;
}

.btn.secondary {
    background: #f8f9fa;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background: #e9ecef;
}

.btn i {
    font-size: 1.1rem;
}

.btn:active {
    transform: translateY(1px);
}

/* Modal Improvements */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background: #f8f9fa;
}

.modal-body {
    padding: 1rem 0;
}

/* Analysis Result Improvements */
.analysis-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.analysis-result.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    text-align: center;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Status Messages */
.status-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.status-message.error {
    background: #dc3545;
}

.status-message.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Loading States */
.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner + p {
    text-align: center;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 10px;
}

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

/* Error Message Styling */
.error-message {
    padding: 1.5rem;
    background: #fff3f3;
    border-left: 4px solid #dc3545;
    margin: 1rem 0;
    border-radius: 4px;
}

.error-message h4 {
    color: #dc3545;
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.error-message p {
    margin: 0.5rem 0;
    color: #666;
}

.error-message ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.error-message li {
    margin: 0.3rem 0;
    color: #666;
}

/* Analysis Content */
.analysis-content {
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.analysis-content h3 {
    color: var(--primary-color);
    margin: 0 0 1.5rem;
    font-size: 1.4rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

/* Scrollbar styling for analysis results */
.analysis-result::-webkit-scrollbar {
    width: 8px;
}

.analysis-result::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.analysis-result::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.analysis-result::-webkit-scrollbar-thumb:hover {
    background: #219a52;
}

.loading-spinner {
    display: none;
    width: 40px;
    height: 40px;
    margin: 1rem auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading .loading-spinner {
    display: block;
}

/* Analysis Results */
.analysis-content {
    padding: 1rem;
}

.result-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.result-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.result-heading {
    color: var(--primary-color);
    margin: 0 0 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.result-text {
    color: #4a4a4a;
    line-height: 1.6;
}

.result-text p {
    margin: 0.5rem 0;
}

.result-text ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.result-text li {
    margin: 0.5rem 0;
}

.error-message {
    background: #fff3f3;
    border-left: 4px solid #dc3545;
    padding: 1rem;
    margin: 1rem 0;
}

.error-message p {
    color: #dc3545;
    margin: 0.5rem 0;
}

.error-message strong {
    font-weight: 600;
}

/* Loading State */
.analysis-result.loading .result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    text-align: center;
    color: #666;
}

.analysis-result.loading .loading-spinner {
    margin-bottom: 1rem;
}

/* Upload Interface */
.upload-container {
    padding: 2rem;
    text-align: center;
}

.upload-box {
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8f9fa;
    position: relative;
}

.upload-box:hover {
    background: #e9ecef;
    border-style: solid;
}

.upload-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-box p {
    color: #666;
    margin: 0;
    font-size: 1.1rem;
}

.upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Analysis Results */
.analysis-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.analysis-result h3 {
    color: var(--primary-color);
    margin: 0 0 1.5rem;
    font-size: 1.4rem;
}

.result-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.result-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.result-heading {
    color: var(--primary-color);
    margin: 0 0 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.result-text {
    color: #4a4a4a;
    line-height: 1.6;
}

.result-text p {
    margin: 0.5rem 0;
}

.result-text ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.result-text li {
    margin: 0.5rem 0;
}

/* Loading State */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

.analysis-result.loading {
    text-align: center;
}

.analysis-result.loading p {
    color: #666;
    margin-top: 1rem;
}

.accessibility-link {
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: underline;
}

/* Repair Guide Styles */
.repair-guide {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.guide-section {
    margin-bottom: 2rem;
}

.guide-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tools List */
#toolsList {
    list-style: none;
}

#toolsList li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Steps List */
#stepsList {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    counter-reset: step-counter;
}

#stepsList li {
    position: relative;
    background: var(--light-bg);
    border-radius: 8px;
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
    counter-increment: step-counter;
}

#stepsList li::before {
    content: counter(step-counter);
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.step-content {
    color: var(--text-color);
    line-height: 1.5;
}

/* Safety List */
#safetyList {
    list-style: none;
}

#safetyList li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #FFF3E0;
    border-radius: 6px;
}

#safetyList i {
    color: #FF9800;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #stepsList {
        grid-template-columns: 1fr;
    }

    #stepsList li {
        padding: 3.5rem 1rem 1rem;
    }
}

/* Professional Advice Section */
#professionalAdvice {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

#professionalAdvice.warning {
    background-color: #FFF3E0;
    color: #E65100;
}

#professionalAdvice:not(.warning) {
    background-color: #E8F5E9;
    color: var(--primary-color);
}

#professionalAdvice i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Calendar Modal Styles */
.calendar-modal {
    max-width: 1000px !important;
    width: 90%;
    height: 80vh;
    padding: 2rem;
}

.calendar-modal #calendar {
    height: calc(100% - 60px);
    margin-top: 1rem;
}

/* FullCalendar Customization */
.fc {
    height: 100%;
    font-family: 'Poppins', sans-serif;
}

.fc .fc-toolbar-title {
    font-size: 1.5rem;
    color: var(--text-color);
}

.fc .fc-button-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.fc .fc-button-primary:hover {
    background-color: var(--accent-hover-color);
    border-color: var(--accent-hover-color);
}

.fc .fc-button-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
}

.fc-event {
    cursor: pointer;
    padding: 2px 4px;
}

.fc-event:hover {
    opacity: 0.9;
}

.fc-daygrid-event {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 40px;
}

/* Calendar Button */
.calendar-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.calendar-btn:hover {
    background-color: var(--accent-hover-color);
    transform: translateY(-1px);
}

/* Events Section */
.events-section {
    padding: 4rem 2rem;
    background-color: var(--bg-color);
}

.events-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

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

.event-card {
    background: var(--card-bg);
    border-radius: 12px;
    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;
}

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

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

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

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.event-detail i {
    width: 16px;
    color: var(--accent-color);
}

.event-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.event-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: auto;
}

.event-action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-join-btn {
    background-color: var(--accent-color);
    color: white;
}

.event-join-btn:hover {
    background-color: var(--accent-hover-color);
}

.event-share-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.event-share-btn:hover {
    background-color: var(--hover-color);
}

/* Profile Modal Styles */
.profile-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.profile-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover-color));
    color: white;
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.profile-image-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.edit-profile-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-profile-image:hover {
    background: var(--accent-hover-color);
    transform: scale(1.1);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin: 0;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.profile-email {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.profile-tabs {
    display: flex;
    padding: 1rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--accent-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

.profile-content {
    padding: 2rem;
}

.tab-content {
    display: none;
}

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

/* Activities Tab */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.activity-item:hover {
    transform: translateX(5px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.activity-details {
    flex: 1;
}

.activity-details h4 {
    margin: 0;
    color: var(--text-color);
}

.activity-details p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.activity-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.points {
    color: var(--accent-color);
    font-weight: bold;
}

/* Badges Tab */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.badge i {
    font-size: 2rem;
    color: var(--accent-color);
}

.badge span {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Settings Tab */
#profileSettingsForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#profileSettingsForm .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#profileSettingsForm label {
    color: var(--text-color);
    font-weight: 500;
}

#profileSettingsForm input,
#profileSettingsForm textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
}

#profileSettingsForm textarea {
    min-height: 100px;
    resize: vertical;
}

.save-settings-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.save-settings-btn:hover {
    background: var(--accent-hover-color);
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Fix modal z-index to ensure proper stacking */
.modal {
    z-index: 1000;
}

/* Add smooth transitions */
.modal-content {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal .modal-content {
    transform: translateY(20px);
    opacity: 0;
}

/* Create Event Modal Styles */
.event-create-modal {
    max-width: 600px;
    width: 90%;
}

.event-create-modal h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.progress-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 15px;
}

.step-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--border-color);
    position: relative;
}

.step-indicator.active {
    background-color: var(--primary-color);
}

.step-indicator.completed {
    background-color: #4caf50;
}

.form-step {
    display: none;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-create-modal {
        max-width: 95%;
    }
}

/* Form control buttons */
.form-controls {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.form-controls button {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.form-controls .primary-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.form-controls .secondary-btn {
    background: #f0f0f0;
    color: var(--text-color);
    border: 1px solid #ddd;
}

.form-controls .primary-btn:hover {
    background: #219a52;
}

.form-controls .secondary-btn:hover {
    background: #e4e4e4;
}

/* Image preview styles */
.image-preview {
    margin-top: 10px;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    text-align: center;
    background-color: #f8f9fa;
}

.preview-text {
    color: #666;
    margin: 10px 0;
}

#previewImg {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Create Event Form */
.form-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

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

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.image-preview {
    margin-top: 10px;
    border: 1px dashed #ccc;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    background-color: #f9f9f9;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.event-create-modal {
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.half {
        width: 100%;
    }
    
    .event-create-modal {
        max-width: 95%;
    }
}

/* Form control buttons */
.form-controls {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.form-controls button {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.form-controls .btn-success,
.form-controls .primary-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.form-controls .btn-secondary,
.form-controls .secondary-btn {
    background: #f0f0f0;
    color: var(--text-color);
    border: 1px solid #ddd;
}

.form-controls .btn-success:hover,
.form-controls .primary-btn:hover {
    background: #219a52;
}

.form-controls .btn-secondary:hover,
.form-controls .secondary-btn:hover {
    background: #e4e4e4;
}

/* FIY page specific button styles */
.primary-btn, .secondary-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, background-color 0.2s;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.secondary-btn {
    background-color: #f5f5f5;
    color: var(--text-primary);
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-2px);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
}

/* Button group for FIY page */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Get Started Section (Footer) */
.get-started {
    padding: 6rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.get-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.get-started h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.get-started p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.action-buttons button {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.action-buttons .primary-btn {
    background-color: white;
    color: var(--primary-color);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.action-buttons .secondary-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.action-buttons .primary-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.action-buttons .secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .get-started {
        padding: 4rem 1.5rem;
        margin-top: 3rem;
    }

    .get-started h2 {
        font-size: 2rem;
    }

    .get-started p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .action-buttons button {
        width: 100%;
        max-width: 300px;
    }
}

/* Footer */
.footer {
    background-color: #283c34;
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1 1 250px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.8;
    max-width: 300px;
}

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

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

.footer-section ul li a {
    text-decoration: none;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
}

/* Responsive Navbar Styles */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    margin-bottom: 0;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 0.5rem;
}

.brand-name {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.nav-middle {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-middle a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-middle a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-middle a:hover::after,
.nav-middle a.active::after {
    width: 100%;
}

.nav-middle a.active {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    margin-left: 15px;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .main-nav {
        padding: 0.5rem 1rem;
        justify-content: space-between;
    }
    
    .nav-left {
        flex: 0 1 auto;
    }
    
    .nav-right {
        flex: 0 1 auto;
        position: static;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .nav-middle {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        gap: 0;
    }
    
    .nav-middle.show {
        transform: translateY(0);
    }
    
    .nav-middle a {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }
    
    .nav-middle a::after {
        display: none;
    }
    
    .nav-middle a.active {
        background-color: rgba(76, 175, 80, 0.1);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    /* Make buttons smaller on mobile */
    .nav-right .icon-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .nav-right .profile-btn {
        width: 35px;
        height: 35px;
    }
    
    .nav-right .profile-pic {
        width: 35px;
        height: 35px;
    }
}

/* Hero section adjustments */
.hero {
    margin-top: 0;
    padding-top: 2rem;
}

main {
    margin-top: 0;
}

/* Form control buttons */
.form-controls {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.form-controls button {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.form-controls .btn-success,
.form-controls .primary-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.form-controls .btn-secondary,
.form-controls .secondary-btn {
    background: #f0f0f0;
    color: var(--text-color);
    border: 1px solid #ddd;
}

.form-controls .btn-success:hover,
.form-controls .primary-btn:hover {
    background: #219a52;
}

.form-controls .btn-secondary:hover,
.form-controls .secondary-btn:hover {
    background: #e4e4e4;
}

/* FIY page specific button styles */
.primary-btn, .secondary-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, background-color 0.2s;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.secondary-btn {
    background-color: #f5f5f5;
    color: var(--text-primary);
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-2px);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
}

/* Button group for FIY page */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
