:root {
    --primary-color: #00122ec4;
    --primary-dark: #3367d6;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --light-gray: #f4f4f4;
    --mid-gray: #e0e0e0;
    --dark-gray: #757575;
    --text-color: #212121;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--light-gray);
    line-height: 1.6;
}

header {
    background-color: var(--primary-color);
    color: var(--white);
    backdrop-filter: blur(10px);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo i {
    font-size: 1.5rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
}
nav {
    display: flex;
    gap: 1%;
}
nav button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

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

.intro {
    text-align: center;
    margin-bottom: 1.5rem;
}

.intro h2 {
    font-size: 2rem;
    color: #2c3e50;
    font-weight: bold;
    content: "Welcome to SpotFix!";
}

.map-container {
    position: relative;
    margin-bottom: 2rem;
}

#map {
    height: 400px;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.map-instructions {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.map-instructions i {
    color: var(--primary-color);
}

#issue-list {
    margin-bottom: 2rem;
}

#issue-list h3 {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--mid-gray);
    padding-bottom: 0.5rem;
}

.issue-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.issue-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.issue-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.issue-card-title {
    font-weight: 600;
}

.issue-card-category {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    color: var(--white);
    background-color: var(--primary-color);
}

.issue-card-category.infrastructure {
    background-color: var(--primary-color);
}

.issue-card-category.cleanliness {
    background-color: var(--secondary-color);
}

.issue-card-category.safety {
    background-color: var(--accent-color);
}

.issue-card-body {
    flex-grow: 1;
}

.issue-card-description {
    margin-bottom: 0.5rem;
}

.issue-card-location {
    color: var(--dark-gray);
    font-size: 0.85rem;
}

.issue-severity {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.severity-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.severity-low {
    background-color: #4caf50;
}

.severity-medium {
    background-color: #ff9800;
}

.severity-high {
    background-color: #f44336;
}

.issue-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.no-issues {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--dark-gray);
    padding: 2rem;
}

.profile-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem;
    overflow-y: auto;
    transition: right 0.3s ease;
}

.profile-panel.active {
    right: 0;
}

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

.profile-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark-gray);
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stats-card {
    background-color: var(--light-gray);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stats-card h4 {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--dark-gray);
}

.stats-card p {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

.daily-challenge {
    background-color: var(--light-gray);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.daily-challenge h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: var(--mid-gray);
    border-radius: 5px;
    margin: 1rem 0 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--secondary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.challenge-status {
    font-size: 0.85rem;
    text-align: right;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--mid-gray);
}

.modal-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark-gray);
}

.modal-body {
    padding: 1rem;
}

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

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

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--mid-gray);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.severity-options {
    display: flex;
    gap: 1rem;
}

.severity-options input {
    margin-right: 0.25rem;
}

#image-preview {
    margin-top: 0.5rem;
    text-align: center;
}

#image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius);
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid var(--mid-gray);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.primary-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

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

.secondary-button {
    background-color: var(--light-gray);
    color: var(--text-color);
    border: 1px solid var(--mid-gray);
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.secondary-button:hover {
    background-color: var(--mid-gray);
}

#toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 2000;
}

.toast {
    background-color: var(--white);
    color: var(--text-color);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 300px;
    animation: slideIn 0.3s, fadeOut 0.3s 2.7s;
    opacity: 0;
}

.toast.success {
    border-left: 4px solid var(--secondary-color);
}

.toast.error {
    border-left: 4px solid var(--accent-color);
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: var(--secondary-color);
}

.toast.error i {
    color: var(--accent-color);
}

.intro h2 {
    font-size: 2rem;
    color: #2c3e50;
    font-weight: bold;
    content: "Welcome to SpotFix!";
}

.intro p {
    font-size: 1rem;
    color: #34495e;
}

.credits {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.credits a {
    color: #2980b9;
    text-decoration: none;
}

.credits a:hover {
    text-decoration: underline;
}

.description-more {
    margin: 40px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.description-more h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.description-more p, .description-more ul {
    font-size: 1rem;
    color: #34495e;
}

.description-more ul {
    list-style: none;
    padding: 0;
}

.description-more ul li {
    margin: 5px 0;
}

.description-more ul li i {
    color: #27ae60;
    margin-right: 8px;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-item h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.faq-item p {
    font-size: 1rem;
    color: #34495e;
}

footer {
    margin-top: 40px;
    padding: 20px;
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
}

footer a {
    color: #1abc9c;
    text-decoration: none;
}

footer a:hover {
    text-decoration: none;
}

.social-links a {
    margin: 0 10px;
    color: #ecf0f1;
    font-size: 1.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #34495e;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: #1abc9c;
    transform: scale(1.1);
}

/* Styling for the search box */
#search-box-container {
    display: none;
    align-items: center;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.5rem;
    max-width: 400px;
    width: 100%;
    margin-right: 1rem;
}

#search-box {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: var(--radius);
    background-color: var(--light-gray);
}

#search-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    transition: background-color 0.3s;
}

#search-button:hover {
    background-color: var(--primary-dark);
}

#search-button i {
    font-size: 1rem;
}

/* Responsive adjustments for social links */
@media (max-width: 768px) {
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .social-links a {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .description-more {
        padding: 15px;
    }
    h3 {
        font-size: 1.5rem;
    }
    p, ul {
        font-size: 0.9rem;
    }
    footer {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    #search-box-container {
        max-width: 100%;
        margin-right: 0;
    }

    #search-box {
        font-size: 0.9rem;
    }

    #search-button {
        padding: 0.4rem 0.8rem;
    }
}

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

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

/* Responsive design */
@media (max-width: 768px) {
    .profile-panel {
        width: 100%;
        right: -100%;
    }
    
    .issue-cards {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
}