/* Basic Reset & Body Styles */
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.5;
    color: #333;
    /* New: Gradient background for glassmorphism effect - Elegant Dark Theme */
    background: linear-gradient(to right bottom, #1a1a2e, #16213e, #0f3460); /* Deep navy to dark blue */
    background-attachment: fixed; /* Ensures background stays fixed during scroll */
    min-height: 100vh; /* Ensure body takes full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: rgba(30, 30, 30, 0.2);
    backdrop-filter: blur(15px);
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background-color: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.sidebar-header {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.sidebar-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-item svg {
    width: 1.25rem;
    height: 1.25rem;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-item.active {
    background-color: rgba(0, 173, 181, 0.2);
    color: #ffffff;
    border-left: 3px solid rgba(0, 173, 181, 0.8);
}

.sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.header-content h1 {
    color: #ffffff;
    margin: 0;
    font-size: 1.875rem;
}

/* Dashboard Sections */
.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

/* Filter Group */
.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.select-trigger {
    background-color: rgba(30, 30, 30, 0.7);
    border: 1.5px solid #00c851;
    color: #111;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 0.5rem;
    min-width: 170px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: border 0.2s, box-shadow 0.2s;
}

.select-trigger:focus {
    outline: none;
    border: 2px solid #00c851;
    box-shadow: 0 0 0 2px rgba(0,200,81,0.2);
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* No Data Message */
.no-data-message {
    text-align: center;
    padding: 3rem;
    background-color: rgba(30, 30, 30, 0.2);
    border-radius: 1rem;
    margin-top: 2rem;
}

.no-data-message svg {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.no-data-message h3 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.no-data-message p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-nav {
        flex-direction: row;
        justify-content: center;
    }

    .nav-item {
        flex: 1;
        justify-content: center;
    }

    .main-content {
        padding: 1rem;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Container & Main Content */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-top: 5.5rem;
}

@media (min-width: 768px) {
    .container {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.main-content {
    max-width: 896px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    /* Adjust for glassmorphism */
    background-color: rgba(30, 30, 30, 0.2); /* Dark, subtle transparency */
    backdrop-filter: blur(15px); /* Stronger blur for elegance */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Very subtle light border */
    border-radius: 1.5rem; /* More rounded for elegance */
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.25); /* Deeper shadow for depth */
    padding: 2.5rem; /* More padding for spaciousness */
}

/* Hero Section */
.hero-section {
    margin-bottom: 3rem;
}

.hero-section h1 {
    color: #ffffff; /* Pure white text */
    text-shadow: 0 0 8px rgba(0,0,0,0.4); /* Stronger text shadow */
}

.hero-section p {
    color: #e0e0e0; /* Light gray text */
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .action-buttons {
        flex-direction: row;
    }
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.75rem; /* More rounded for elegance */
    transition-property: all;
    transition-duration: 200ms;
    /* Adjust for glassmorphism buttons */
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.15); /* Soft shadow */
    text-decoration: none;
    cursor: pointer;
    background-color: rgba(50, 50, 50, 0.3); /* Darker transparent background */
    backdrop-filter: blur(10px); /* Stronger blur for buttons */
    border: 1px solid rgba(255, 255, 255, 0.18); /* Subtle light border */
    color: #ffffff; /* Pure white text */
}

.button svg {
    margin-right: 0.5rem;
    height: 1.25rem;
    width: 1.25rem;
}

.button.primary {
    background-color: rgba(0, 173, 181, 0.7); /* Deep Teal */
    border-color: rgba(0, 173, 181, 0.8);
}

.button.primary:hover {
    background-color: rgba(0, 160, 168, 0.8); /* Slightly darker teal on hover */
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.2);
}

.button.outline {
    border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border for outline */
    color: #ffffff;
    background-color: transparent;
}

.button.outline:hover {
    background-color: rgba(255, 255, 255, 0.1); /* More visible hover */
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.2);
}

/* Feature Highlights */
.feature-highlights {
    margin-top: 4rem;
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .feature-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.feature-card {
    background-color: rgba(30, 30, 30, 0.2); /* Darker glass for cards */
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-card h3 {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.feature-card p {
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.icon-container {
    width: 3.5rem; /* Slightly larger icons */
    height: 3.5rem;
    border-radius: 1rem; /* More rounded */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.25rem;
    background-color: rgba(60, 60, 60, 0.4); /* Darker transparent background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.icon-container svg {
    height: 1.75rem; /* Larger icons */
    width: 1.75rem;
    color: #ffffff; /* White icons */
}

.icon-container.purple {
    background-color: rgba(147, 112, 219, 0.4); /* Medium Purple */
    border-color: rgba(147, 112, 219, 0.5);
}

.icon-container.purple svg {
    color: #ffffff;
}

.icon-container.pink {
    background-color: rgba(0, 173, 181, 0.4); /* Medium Teal */
    border-color: rgba(0, 173, 181, 0.5);
}

.icon-container.pink svg {
    color: #ffffff;
}

.icon-container.blue {
    background-color: rgba(255, 160, 0, 0.4); /* Golden Orange */
    border-color: rgba(255, 160, 0, 0.5);
}

.icon-container.blue .blue-circle {
    width: 1.75rem;
    height: 1.75rem;
    background-color: #ffffff; /* White circle */
    border-radius: 9999px;
}

/* Report Page Specific Styles */
.header-section {
    margin-bottom: 2rem;
}

.header-section h1 {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.header-section p {
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.button.ghost {
    background-color: rgba(50, 50, 50, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.button.ghost:hover {
    background-color: rgba(50, 50, 50, 0.3);
    color: #ffffff;
    box-shadow: none;
}

.button.ghost svg {
    width: 1rem;
    height: 1rem;
}

/* Loading state styles */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '...'; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.alert.success {
    border: 1px solid rgba(144, 238, 144, 0.25); /* Subtler green for success */
    background-color: rgba(144, 238, 144, 0.1);
}

.alert.success svg {
    color: #ffffff;
}

.alert.success p {
    color: #ffffff;
}

.alert.error {
    border: 1px solid rgba(255, 99, 71, 0.25); /* Subtler tomato for error */
    background-color: rgba(255, 99, 71, 0.1);
}

.alert.error svg {
    color: #ffffff;
}

.alert.error p {
    color: #ffffff;
}

.card {
    background-color: rgba(30, 30, 30, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.card-description {
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.card-content {
    padding: 1.5rem;
}

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

.form-group label {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.form-group label .required {
    color: #ffb3b3; /* Softer red for required */
}

.form-group label .optional {
    color: #e0e0e0;
}

.input-field,
.textarea-field,
.select-trigger {
    background-color: rgba(50, 50, 50, 0.2); /* Darker transparent input glass */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.625rem 1rem;
    font-size: 1rem;
    line-height: 1.5rem;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-field::placeholder,
.textarea-field::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Lighter placeholder text */
}

.input-field:focus,
.textarea-field:focus,
.select-trigger:focus {
    border-color: rgba(0, 173, 181, 0.7); /* Teal focus */
    box-shadow: 0 0 0 4px rgba(0, 173, 181, 0.25); /* Wider, softer shadow */
}

.input-field.error,
.textarea-field.error,
.select-trigger.error {
    border-color: rgba(255, 99, 71, 0.4);
}

.error-message {
    color: #ffb3b3;
}

.error-message svg {
    color: #ffffff;
}

/* Analytics Section Styles */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .analytics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.analytics-card {
    background-color: rgba(30, 30, 30, 0.2);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -2px rgba(0, 0, 0, 0.25);
}

.analytics-card.today {
    border-left: 4px solid rgba(46, 204, 113, 0.6); /* Green accent */
}

.analytics-card.week {
    border-left: 4px solid rgba(0, 173, 181, 0.6); /* Teal accent */
}

.analytics-card.month {
    border-left: 4px solid rgba(147, 112, 219, 0.6); /* Purple accent */
}

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

.analytics-header svg {
    color: rgba(255, 255, 255, 0.8);
    width: 1.25rem;
    height: 1.25rem;
}

.analytics-header h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.analytics-count {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.analytics-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.breakdown-label {
    color: #e0e0e0;
    font-size: 0.875rem;
    font-weight: 500;
}

.breakdown-value {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    min-width: 2rem;
    text-align: center;
}

.breakdown-value.critical {
    background-color: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.breakdown-value.high {
    background-color: rgba(46, 204, 113, 0.2);
    color: #51cf66;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.breakdown-value.low {
    background-color: rgba(52, 152, 219, 0.2);
    color: #74c0fc;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.table-container {
    overflow-x: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(20, 20, 20, 0.3);
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.analytics-table th {
    background-color: rgba(40, 40, 40, 0.5);
    color: #ffffff;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.analytics-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

.analytics-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.analytics-table tbody tr:last-child td {
    border-bottom: none;
}

.analytics-table .issue-type-cell {
    font-weight: 600;
    color: #ffffff;
}

.analytics-table .count-cell {
    text-align: center;
    font-weight: 500;
}

.analytics-table .count-cell.has-reports {
    color: #ffffff;
    background-color: rgba(0, 173, 181, 0.2);
    border-radius: 0.375rem;
}

.analytics-table .total-cell {
    font-weight: 700;
    color: #ffffff;
    background-color: rgba(147, 112, 219, 0.2);
    border-radius: 0.375rem;
}

/* Enhanced margin for better spacing */
.mb-8 {
    margin-bottom: 2rem;
}

/* Dashboard Page Specific Styles */
.dashboard-header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .dashboard-header-content {
        flex-direction: row;
        align-items: center;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.stat-item {
    text-align: center;
}

.stat-value {
    color: #ffffff; /* White text for stats */
    text-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.stat-value.red {
    color: #ffb3b3; /* Softer red */
}

.stat-value.orange {
    color: #ffd8a1; /* Softer orange */
}

.stat-value.blue {
    color: #a1d8ff; /* Softer blue */
}

.stat-label {
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.filter-controls {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

@media (min-width: 640px) {
    .filter-controls {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.filter-label-group {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
    letter-spacing: 0.02em;
}

.filter-label-group svg {
    color: #e0e0e0;
}

.reports-list-section {
    margin-top: 1rem;
}

.reports-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.reports-summary h2 {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.badge.secondary {
    background-color: rgba(0, 173, 181, 0.3); /* Teal badge background */
    color: #ffffff;
    border: 1px solid rgba(0, 173, 181, 0.4);
}

.report-card {
   
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background-color: rgba(35, 35, 45, 0.95);
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.report-card-timestamp {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.report-card-location {
    font-size: 1rem;
    color: #00c851;
    font-weight: 500;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0;
    text-shadow: 0 0 5px rgba(0, 200, 81, 0.3);
}

.report-card-description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    font-weight: 400;
}

.report-card-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.report-card .badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.report-card .badge.priority-critical {
    background-color: rgba(231, 76, 60, 0.3);
    border-color: rgba(231, 76, 60, 0.4);
    color: #ff6b6b;
}

.report-card .badge.priority-high {
    background-color: rgba(255, 170, 0, 0.3);
    border-color: rgba(255, 170, 0, 0.4);
    color: #ffaa00;
}

.report-card .badge.priority-medium {
    background-color: rgba(46, 204, 113, 0.3);
    border-color: rgba(46, 204, 113, 0.4);
    color: #51cf66;
}

.report-card .badge.priority-low {
    background-color: rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.4);
    color: #74c0fc;
}

.report-card .badge.status-reported {
    background-color: rgba(255, 170, 0, 0.2);
    border-color: rgba(255, 170, 0, 0.3);
    color: #ffaa00;
}

.report-card .badge.status-in-progress {
    background-color: rgba(0, 150, 255, 0.2);
    border-color: rgba(0, 150, 255, 0.3);
    color: #0096ff;
}

.report-card .badge.status-resolved {
    background-color: rgba(0, 200, 81, 0.2);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.badge.issue-type {
    background-color: rgba(147, 112, 219, 0.3); /* Medium Purple badge background */
    color: #ffffff; /* White text for badge */
    border: 1px solid rgba(147, 112, 219, 0.4);
}

.priority-badge {
    padding: 0.2em 0.5em;
    border-radius: 0.3rem;
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 0.5em;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.priority-green {
    background-color: rgba(46, 204, 113, 0.3); /* Muted green */
    color: #ffffff;
    border: 1px solid rgba(46, 204, 113, 0.4);
}

.priority-red {
    background-color: rgba(231, 76, 60, 0.3); /* Muted red */
    color: #ffffff;
    border: 1px solid rgba(231, 76, 60, 0.4);
}

.priority-blue {
    background-color: rgba(52, 152, 219, 0.3); /* Muted blue */
    color: #ffffff;
    border: 1px solid rgba(52, 152, 219, 0.4);
} 

/* CampusCare Header Styles */
.cc-header {
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(20, 20, 40, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}
.cc-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.cc-logo {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 0.5rem;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.cc-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.cc-header-center {
    display: flex;
    gap: 1.5rem;
}
.cc-header-right {
    display: flex;
    align-items: center;
}

/* Adjust main content for fixed header */
.container {
    margin-top: 5.5rem;
}

/* CampusCare Hero Section */
.cc-hero {
    margin-bottom: 2.5rem;
    text-align: center;
}
.cc-main-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(0,0,0,0.4);
}
.cc-tagline {
    color: #e0e0e0;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* Report Action Section */
.cc-report-action {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

/* Admin Login Modal Styles */
.cc-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,20,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.cc-modal-content {
    background: rgba(30,30,40,0.95);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem 2rem 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    min-width: 320px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}
#admin-login-form .input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #444;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1rem;
}
#admin-login-form .button {
    width: 100%;
}
#admin-login-error {
    color: #ff4d4f;
    font-size: 1rem;
    text-align: center;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .cc-header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0.5rem;
    }
    .cc-header-center {
        gap: 0.5rem;
    }
    .container {
        margin-top: 7.5rem;
    }
} 

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.5rem;
}

/* Issues Table */
.issues-table-container {
    background-color: rgba(30, 30, 30, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 1rem;
}

.issues-table {
    width: 100%;
    border-collapse: collapse;
    color: #ffffff;
}

.issues-table th,
.issues-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.issues-table th {
    background-color: rgba(20, 20, 30, 0.95);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.issues-table tbody tr {
    transition: background-color 0.2s ease;
}

.issues-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.issues-table td:last-child {
    text-align: right;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.reported {
    background-color: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
}

.status-badge.in-progress {
    background-color: rgba(0, 150, 255, 0.2);
    color: #0096ff;
}

.status-badge.resolved {
    background-color: rgba(0, 200, 0, 0.2);
    color: #00c800;
}

/* Action Buttons */
.action-button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.action-button:hover {
    color: #ffffff;
}

.action-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.25rem;
}

.close-modal {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #ffffff;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .issues-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-controls {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .issues-table th,
    .issues-table td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
} 

/* Analytics Cards Grid */
.analytics-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analytics-card {
    background-color: rgba(30, 30, 40, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.analytics-card h3 {
    color: #ffffff;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.chart-container {
    position: relative;
    height: 200px;
    margin-bottom: 1rem;
}

.analytics-insights {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

.analytics-insights p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analytics-insights span {
    color: #ffffff;
    font-weight: 500;
}

/* Recommendations Section */
.recommendations-section {
    background-color: rgba(30, 30, 40, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.recommendations-section h3 {
    color: #ffffff;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.recommendations-list {
    display: grid;
    gap: 1rem;
}

.recommendation-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 3px solid;
}

.recommendation-item.critical {
    border-color: #ff4444;
}

.recommendation-item.high {
    border-color: #ffaa00;
}

.recommendation-item.medium {
    border-color: #00c851;
}

.recommendation-item.low {
    border-color: #33b5e5;
}

.recommendation-item h4 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.recommendation-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .analytics-cards-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 180px;
    }
}

/* Admin Insights Styles */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.insight-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.insight-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.insight-icon.good {
    background: linear-gradient(135deg, #00c851, #00a844);
    color: white;
}

.insight-icon.warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.insight-icon.info {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

.insight-icon.success {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.insight-content h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.insight-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.insight-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

.leaderboard-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .leaderboard-container {
        grid-template-columns: 1fr;
    }
}

.leaderboard-section h3 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.facility-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.facility-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.facility-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.facility-name {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9375rem;
}

.facility-score {
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.facility-score.good {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.facility-score.warning {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.facility-score.danger {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.smart-recommendation {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.smart-recommendation:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.smart-recommendation h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.smart-recommendation p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.smart-recommendation.priority-high {
    border-left: 4px solid #ff9800;
}

.smart-recommendation.priority-critical {
    border-left: 4px solid #f44336;
}

.smart-recommendation.priority-medium {
    border-left: 4px solid #2196f3;
}

.smart-recommendation.priority-low {
    border-left: 4px solid #4caf50;
} 

select, .select-trigger, select#facility_id, select#issueType {
    background-color: transparent !important;
} 
option {
    color: #111;
} 