body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f5f5f7;
    color: #1d1d1f;
}

/* Navigation */
#main-nav {
    position: sticky;
    top: 0;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav-brand {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    color: #515154;
    transition: all 0.2s;
}

.nav-btn.active {
    background: #0071e3;
    color: white;
}

/* Page Control */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Weather Map Specific */
#map {
    height: calc(100vh - 60px);
    width: 100vw;
    z-index: 1;
}

#weather-info {
    position: absolute;
    top: 80px;
    right: 20px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    max-width: 300px;
}

h1 {
    position: absolute;
    top: 80px;
    left: 60px;
    z-index: 10;
    margin: 0;
    color: #333;
    background: rgba(255,255,255,0.7);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    font-size: 1.2rem;
}

/* Classifier Page */
.classifier-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.classifier-header {
    text-align: center;
    margin-bottom: 40px;
}

.classifier-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.classifier-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.input-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#webcam-container video {
    width: 100% !important;
    height: auto !important;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: scaleX(-1);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 12px 24px;
    background: #f5f5f7;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #e8e8ed;
}

/* Results */
.result-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.prediction-bar-container {
    margin-bottom: 20px;
}

.label-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.bar-outer {
    height: 12px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
}

.bar-inner {
    height: 100%;
    background: #0071e3;
    transition: width 0.3s ease;
}

#prediction-summary {
    margin-top: 30px;
    padding: 20px;
    border-radius: 15px;
    background: #f5f5f7;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Rest of existing styles */
#comments-section {
    padding: 40px 20px;
    background: #fdfdfd;
    max-width: 800px;
    margin: 40px auto;
}

.weather-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.additional-info {
    font-size: 0.9em;
    color: #555;
}

#contact-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 1.5rem;
    cursor: pointer;
}

#contact-form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

#contact-form-container.hidden {
    display: none;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

#close-contact-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
}

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

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

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}
