/* Core Styling Rules Engine */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f7f9fa;
    color: #333;
}

header {
    background-color: #2E7D32;
    color: white;
    text-align: center;
    padding: 35px 20px;
    position: relative;
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
}

#language {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.welcome {
    background-color: white;
    padding: 25px;
    margin: 25px auto;
    max-width: 850px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

/* Map Elements & Categories Quick Filters Styling UI */
.map-section {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #e0e0e0;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #2E7D32;
    color: white;
}

#map {
    height: 420px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    z-index: 1;
}

/* Live Activity News Feed Ticker Elements */
.feed-section {
    max-width: 910px;
    margin: 30px auto;
    padding: 0 20px;
}

#feed-heading {
    border-bottom: 2px solid #2E7D32;
    padding-bottom: 6px;
    color: #1B5E20;
}

#recent-reports-feed {
    background-color: #ffffff;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
    padding: 10px;
}

.feed-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    animation: slideIn 0.3s ease-out;
}

.feed-item:last-child {
    border-bottom: none;
}

/* Automated Emergency Warning Alert Layout Panel Box */
#emergency-contact-box {
    background-color: #ffebee;
    border-left: 5px solid #d32f2f;
    padding: 15px;
    margin: 10px 0 15px 0;
    border-radius: 5px;
}

#emergency-title {
    font-weight: bold; 
    margin: 0 0 5px 0; 
    color: #d32f2f;
}

#emergency-details {
    font-weight: bold; 
    font-size: 1.05rem; 
    margin: 0; 
    color: #222;
}

/* Category Grid Panels Cards */
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1050px;
    margin: 30px auto;
}

.card {
    background-color: white;
    width: 210px;
    margin: 15px;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

/* Form inputs & Structure Layout definitions */
.report {
    background-color: white;
    max-width: 650px;
    margin: 30px auto;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 15px;
    font-weight: bold;
    margin-bottom: 6px;
}

input, select, textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fafafa;
}

button[type="submit"] {
    background-color: #2E7D32;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

button[type="submit"]:hover {
    background-color: #1B5E20;
}

/* Custom Interactive Features Layout Components */
.popup-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin-top: 8px;
    border-radius: 4px;
    display: block;
}

.upvote-btn {
    background: #e8f5e9;
    border: 1px solid #81c784;
    color: #2e7d32;
    padding: 4px 8px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

#success-message {
    font-size: 1.15rem;
    text-align: center;
}

/* Float Layer Control Structure Back to Top UI */
#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: none;
    background-color: #2E7D32;
    color: white;
    border: none;
    padding: 12px 14px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

#backToTop:hover {
    background-color: #1B5E20;
    transform: scale(1.1);
}

footer {
    text-align: center;
    padding: 30px;
    background-color: #eceff1;
    margin-top: 50px;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}