/* --- GENERAL RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* multi-color gradient background */
    background: linear-gradient(135deg, #ff4e50, #1a73e8, #34c759, #9b59b6);
    background-size: 400% 400%; /* for smooth animation */
    animation: gradientAnimation 15s ease infinite;
    color: #333;
    min-height: 100vh;
}

/* --- GRADIENT ANIMATION --- */
@keyframes gradientAnimation {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* --- HEADER --- */
header {
    background: rgba(0,0,0,0.6); /* semi-transparent dark header */
    color: white;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

header h1 {
    margin-bottom: 10px;
    font-size: 32px;
}

header a.btn {
    background: white;
    color: #1a73e8;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

header a.btn:hover {
    background: #e8f0fe;
}

/* --- FORM STYLING --- */
.form {
    width: 500px;
    max-width: 95%;
    margin: 40px auto;
    background: rgba(255,255,255,0.95);
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a73e8;
    font-size: 28px;
    font-weight: 600;
}

/* --- FORM GROUPS & LABELS --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

/* --- INPUTS, TEXTAREA, SELECT --- */
.form input,
.form textarea,
.form select {
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ccd0d5;
    font-size: 16px;
    background-color: #f8fbff;
    outline: none;
    transition: all 0.3s ease;
}

.form input:hover,
.form textarea:hover,
.form select:hover {
    border-color: #1a73e8;
    background-color: #eef4ff;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.1);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    border-color: #1a73e8;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

/* --- TEXTAREA --- */
.form textarea {
    min-height: 200px;
    resize: vertical;
    font-family: inherit;
}

/* --- FILE INPUT (for image) --- */
.form input[type="file"] {
    padding: 10px;
    background-color: #f0f4f8;
    cursor: pointer;
}

/* --- SUBMIT BUTTON --- */
.form button {
    width: 100%;
    background: #1a73e8;
    color: white;
    border: none;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    margin-top: 25px;
    padding: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.form button:hover {
    background: #155ab6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 90, 182, 0.4);
}

/* --- IMAGE PREVIEW --- */
#preview {
    display: none;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #e0e0e0;
}

#preview.show {
    display: block;
}

/* --- ISSUE CARDS --- */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    gap: 20px;
}

.card {
    background: rgba(255,255,255,0.95);
    width: 300px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.card h3 {
    margin-bottom: 8px;
    font-size: 20px;
    color: #1a73e8;
}

.card p {
    font-size: 15px;
    margin-bottom: 10px;
    color: #555;
}

.card small {
    font-size: 13px;
    color: #777;
}

/* --- TABLE (Admin Dashboard) --- */
table {
    width: 90%;
    margin: 40px auto;
    border-collapse: collapse;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

th, td {
    padding: 15px;
    text-align: left;
}

th {
    background: #1a73e8;
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background: rgba(245,247,250,0.8);
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 600px) {
    .form, .card {
        width: 90%;
        padding: 25px;
    }

    .form h2 {
        font-size: 24px;
    }

    .form button {
        font-size: 16px;
        padding: 14px;
    }
    /* ===============================
   REPORT PAGE ENHANCEMENTS
================================ */

/* Better form width for long location selects */
.form {
    max-width: 650px;
}

/* Make description area feel premium */
.form textarea {
    min-height: 260px;
    line-height: 1.6;
    font-size: 16px;
}

/* Location dropdowns visual hierarchy */
.form select {
    font-weight: 500;
}

/* Section spacing consistency */
.form-group {
    margin-bottom: 22px;
}

/* Image preview styling */
.preview-img {
    display: none;
    width: 100%;
    margin-top: 15px;
    border-radius: 10px;
    border: 2px dashed #d0d7e2;
    padding: 6px;
    background: #f8fbff;
}

.preview-img.show {
    display: block;
}

/* Submit button emphasis */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #1a73e8, #34c759);
    color: white;
    border: none;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 115, 232, 0.35);
}
.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.category-filter select {
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #ccd0d5;
    background: white;
    font-size: 16px;
    min-width: 200px;
    cursor: pointer;
}

.category-filter select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 4px rgba(26,115,232,0.3);
}

.category-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
}

.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    margin-top: 10px;
    font-size: 14px;
}

.status.pending { background: #fff3e0; color: #e65100; }
.status.in-progress { background: #e8f5e9; color: #2e7d32; }
.status.solved { background: #e0f2f1; color: #00695c; }
}