body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
}

.container {
    width: 400px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

input, textarea, select {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
}

button {
    background: #d62828;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #9d0208;
}

.nav {
    background: #6a040f;
    padding: 10px;
    color: white;
}
/* Dashboard Specifics */
.dashboard-body {
    background: #b71c1c url('https://www.transparenttextures.com/patterns/crackle.png');
    margin: 0;
    font-family: Arial, sans-serif;
}

.main-layout {
    display: flex;
    min-height: 100vh; 
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: rgba(45, 10, 10, 0.95);
    color: #e0e0e0;
    padding: 20px 0;
    flex-shrink: 0; /* Prevents the sidebar from squishing */
    position: sticky; /* Keeps it on the left while scrolling */
    top: 0;
    height: 100vh;
}

.sidebar-header {
    padding: 0 20px;
    margin-bottom: 30px;
    font-size: 0.8rem;
    font-weight: bold;
}

.side-menu a {
    display: block;
    padding: 15px 20px;
    color: #fdd835;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.side-menu a.active {
    background-color: #fdd835;
    color: #8b0000;
}

/* Content Area */
.dashboard-content {
    flex: 1;
    padding: 30px;
}

.white-card {
  background: #fff8e1;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow-x: auto; 
}

.page-title {
    color: #fdd835;
    font-size: 3rem;
    font-weight: 900;
    margin-top: 0;
}

/* Stats Cards */
.stats-row {
display: flex;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
    flex-wrap: nowrap; 
}

.stat-card {
flex: 1;
  flex: 1;
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-radius: 50px;
    color: white;
    font-family: sans-serif;
}

.stat-card.red { background: linear-gradient(to right, #d32f2f, #f44336); }
.stat-card.yellow { background: linear-gradient(to right, #fbc02d, #ffeb3b); color: #333; }
.stat-card.green { background: linear-gradient(to right, #388e3c, #4caf50); }

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th {
    background: #fce4ec;
    padding: 15px;
    text-align: left;
    border: 2px solid #333;
}

.data-table td {
    padding: 15px;
    border: 2px solid #333;
}

.status-pill {
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    display: inline-block;
}
/* Fix the Top Navigation Bar */
.top-nav {
    background-color: #2d0a0a; /* Dark maroon from the photo */
    padding: 10px 40px;
    display: flex;             /* Align items in a row */
    justify-content: space-between; 
    align-items: center;       /* Center items vertically */
    color: white;
    height: 80px;
}

/* Fix the Giant Logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area img {
    width: 60px;               /* Force the giant logo to be small */
    height: auto;
}

.logo-text {
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.2;
}

/* Fix the Navigation Links */
.top-links {
    display: flex;
    gap: 25px;
}

.top-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
}

/* Sidebar Logo Fix */
.sidebar-header img {
    width: 40px;
    height: auto;
    margin-bottom: 10px;
}

/* Body with Textured Red Background */
.report-page-body {
    background: #b71c1c url('https://www.transparenttextures.com/patterns/crackle.png');
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.report-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 100px;
}

/* Header Text */
.report-headline {
    color: #fdd835;
    font-size: 4rem;
    font-weight: 900;
    margin: 40px 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Form Card */
.report-card {
    background-color: #fff9e6; /* Cream color from image */
    border-radius: 25px;
    padding: 40px;
    width: 90%;
    max-width: 750px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-instruction {
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
}

/* Input Fields */
.input-block {
    margin-bottom: 15px;
}

.input-block label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.icon-input {
    position: relative;
}

.icon-input i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
}

.icon-input input, .icon-input textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background-color: #f2d98a; /* Golden yellow from image */
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Red Submit Button */
.btn-submit-report {
    background-color: #ff1744;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Bottom white curve effect */
.bottom-curve {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 80px;
    background-color: #fff9e6;
    border-radius: 100% 100% 0 0;
    z-index: -1;
}

/* Stats Card Row */
.stats-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.stat-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 50px; /* Highly rounded as seen in target image */
    color: white;
    font-family: sans-serif;
}

.stat-card i {
    font-size: 1.8rem;
}

.stat-card strong {
    font-size: 1.4rem;
    display: block;
}

.stat-card.unresolved { background-color: #d32f2f; } /* Red */
.stat-card.ongoing { background-color: #fbc02d; }    /* Yellow */
.stat-card.resolved { background-color: #388e3c; }   /* Green */

/* Search bar styling */
.search-bar {
    border: 2px solid #333;
    border-radius: 0;
    display: flex;
    align-items: center;
    padding: 5px 10px;
}

.search-bar input {
    border: none;
    outline: none;
    padding: 5px;
    font-weight: bold;
}

/* Table Header Color */
.data-table thead th {
    background-color: #f8bbd0; /* Pale pinkish header */
    border: 1px solid #000;
}
/* Container for the buttons */
.tabs {
    display: flex;
    background-color: #fce4ec; /* Light pink/grey background for the tab bar */
    border-radius: 30px;
    padding: 5px;
    display: inline-flex;
    margin-bottom: 10px;
}

/* Base style for all tab buttons */
.tab-btn {
    text-decoration: none;
    color: #333;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 900;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

/* THE FIX: Color for the active button */
.active-tab {
    background-color: #ff0000; /* Bright red */
    color: #ffffff !important;  /* White text */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Hover effect for inactive buttons */
.tab-btn:hover:not(.active-tab) {
    background-color: #f8bbd0;
}

/* Admin Specific Layout */
.admin-header-strip {
    background-color: #d32f2f; /* Solid Red */
    color: white;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
}

.admin-header-strip h2 {
    margin: 0;
    font-size: 1.5rem;
}

/* Table Styling to match */
.no-padding {
    padding: 0 !important;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead th {
    background-color: #e3f2fd; /* Light blue tint from screenshot */
    text-align: left;
    padding: 12px;
    border: 1px solid #ddd;
    color: #333;
}

.admin-table tbody td {
    padding: 12px;
    border: 1px solid #ddd;
    background-color: white;
}

/* Sidebar Active State for Admin */
.side-menu a.active {
    background-color: #fdd835; /* Yellow highlight */
    color: #b71c1c;
    font-weight: bold;
}

/* Color Palette from Design */
:root {
    --bfp-red: #b71c1c;
    --bfp-yellow: #fdd835;
    --bfp-dark: #121212;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Navbar Layout */
.navbar {
    background: var(--bfp-dark);
    color: var(--white);
    padding: 10px 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--bfp-yellow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 45px; /* Prevents the "Giant Logo" issue */
}

.logo-text span {
    display: block;
    line-height: 1.2;
}

.unit-name { font-weight: bold; font-size: 0.9rem; }
.location-name { color: var(--bfp-yellow); font-size: 0.8rem; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-btn {
    background: var(--bfp-yellow);
    color: var(--bfp-dark) !important;
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: bold;
}

/* Hero Section with Gradient Overlay */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(to right, rgba(183, 28, 28, 0.9), rgba(13, 71, 161, 0.7)); 
    text-align: center;
    padding: 0 20px;
}

.main-seal {
    width: 140px; /* Fixed sizing for central seal */
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--bfp-yellow);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-yellow { background: var(--bfp-yellow); color: var(--bfp-dark); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }

/* Services Grid */
.services-section {
    padding: 80px 10%;
    background: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top: 5px solid var(--bfp-red);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--bfp-red);
    margin-bottom: 20px;
}

.footer {
    background: var(--bfp-dark);
    color: #888;
    text-align: center;
    padding: 30px;
    font-size: 0.8rem;
}

.status-pill.pending { background: #d32f2f; }
.status-pill.ongoing { background: #fbc02d; color: #000; }
.status-pill.resolved { background: #388e3c; }