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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    min-height: 100vh;
    color: #1f2937;
}

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

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #d1fae5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

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

.logo {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.header-text h1 {
    font-size: 1.5rem;
    color: #064e3b;
    font-weight: 700;
}

.subtitle {
    font-size: 0.875rem;
    color: #059669;
}

.header-right {
    display: flex;
    gap: 0.5rem;
}

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

.user-details {
    text-align: right;
}

.user-name {
    font-size: 0.875rem;
    color: #064e3b;
    font-weight: 600;
}

.user-role {
    font-size: 0.75rem;
    color: #059669;
}

/* Navigation */
.nav {
    background: white;
    border-bottom: 1px solid #d1fae5;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.75rem 1.5rem;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: #059669;
}

.nav-link.active {
    color: #059669;
    border-bottom-color: #059669;
}

/* Main */
.main {
    padding: 2rem 0;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #059669;
    color: white;
}

.btn-primary:hover {
    background: #047857;
}

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

.btn-outline:hover {
    background: #f0fdf4;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Cards */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #d1fae5;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bg-green {
    background: #d1fae5;
}

.bg-red {
    background: #fee2e2;
}

.bg-blue {
    background: #dbeafe;
}

.bg-cyan {
    background: #cffafe;
}

.bg-amber {
    background: #fef3c7;
}

.bg-yellow {
    background: #fef9c3;
}

.bg-gray {
    background: #f3f4f6;
}

/* Views */
.view {
    display: none;
}

.view.active {
    display: block;
}

/* Map */
.map-container {
    position: relative;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 0.75rem;
    border: 2px solid #6ee7b7;
    overflow: hidden;
}

.map-background {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-building {
    text-align: center;
    color: #6ee7b7;
    opacity: 0.3;
    user-select: none;
}

.building-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.school-building p {
    font-size: 0.875rem;
}

.eco-marker {
    position: absolute;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 4px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.eco-marker:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.marker-recycle {
    background: #3b82f6;
}

.marker-water {
    background: #06b6d4;
}

.marker-composting {
    background: #d97706;
}

.marker-solar {
    background: #eab308;
}

.map-legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.legend-title {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #374151;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

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

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

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

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

/* Image Upload */
.image-upload {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.upload-label {
    cursor: pointer;
    display: block;
}

.image-upload:hover {
    border-color: #059669;
    background: #f0fdf4;
}

.upload-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.image-upload p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.text-small {
    font-size: 0.75rem;
    color: #9ca3af;
}

.image-preview {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #d1d5db;
}

.image-preview img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.remove-image:hover {
    background: #b91c1c;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    color: #059669;
}

.success-message h2 {
    color: #064e3b;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #059669;
    margin-bottom: 1.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card.border-amber {
    border-color: #fbbf24;
}

.stat-card.border-blue {
    border-color: #3b82f6;
}

.stat-card.border-green {
    border-color: #10b981;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.text-amber {
    color: #92400e !important;
}

.text-blue {
    color: #1e3a8a !important;
}

.text-green {
    color: #064e3b !important;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.filter-btn:hover {
    background: #e5e7eb;
}

.filter-btn.active {
    background: #059669;
    color: white;
}

/* Report Card */
.report-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.report-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.report-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.report-title {
    font-size: 1.125rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-pending {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}

.status-in-progress {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.status-resolved {
    background: #d1fae5;
    border-color: #10b981;
    color: #064e3b;
}

.report-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.resolution-box {
    margin-top: 1rem;
    padding: 1rem;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 0.5rem;
}

.resolution-box strong {
    color: #064e3b;
}

.resolution-box p {
    font-size: 0.875rem;
    color: #047857;
    margin-bottom: 0.5rem;
}

.resolution-date {
    font-size: 0.75rem;
    color: #059669;
}

.report-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
}

.radio-label input[type="radio"] {
    width: 1rem;
    height: 1rem;
    accent-color: #059669;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header-left {
    display: flex;
    align-items: start;
    gap: 1rem;
    flex: 1;
}

.modal-header h3 {
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.modal-header p {
    font-size: 0.875rem;
    color: #6b7280;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.3s;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #6b7280;
}

.modal-body {
    padding: 1.5rem;
}

.rules-box {
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.rules-box h4 {
    font-size: 0.875rem;
    color: #064e3b;
    margin-bottom: 0.75rem;
}

.rules-box ul {
    list-style: none;
}

.rules-box li {
    font-size: 0.875rem;
    color: #047857;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.rules-box li:last-child {
    margin-bottom: 0;
}

.rules-box li::before {
    content: "✓";
    color: #10b981;
    font-weight: 700;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 0.75rem;
}

.button-group .btn {
    flex: 1;
}

/* Utility Classes */
.text-muted {
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

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

    .nav-links {
        overflow-x: auto;
    }

    .filter-buttons {
        overflow-x: auto;
    }

    .report-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .report-actions {
        flex-direction: column;
    }

    .button-group {
        flex-direction: column;
    }
}
