.page-title {
    text-align: center;
    color: #081F5C;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.grievance-form-container,
.grievance-table-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(8, 31, 92, 0.1);
    margin-bottom: 2rem;
}

h2 {
    color: #081F5C;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #7096D1;
    padding-bottom: 0.5rem;
}

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

.input-group label {
    display: block;
    color: #334EAC;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #BAD6EB;
    border-radius: 10px;
    font-size: 1rem;
    font-family: Georgia, serif;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #7096D1;
    box-shadow: 0 0 0 3px rgba(112, 150, 209, 0.2);
}

.submit-button {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #334EAC, #7096D1);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(51, 78, 172, 0.3);
}

.grievance-table {
    width: 100%;
    border-collapse: collapse;
}

.grievance-table th,
.grievance-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #EDF1F6;
}

.grievance-table th {
    background: #EDF1F6;
    color: #081F5C;
    font-weight: bold;
}

.status-unresolved {
    color: #d9534f;
    font-weight: bold;
}

.status-in_progress {
    color: #f0ad4e;
    font-weight: bold;
}

.status-resolved {
    color: #5cb85c;
    font-weight: bold;
}

.status-rejected {
    color: #d9534f;
    font-weight: bold;
}

/* --- Polling Section Styles --- */
.polling-section p {
    color: #6c757d;
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 2rem;
}
.poll-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.poll-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "issue button" "bar bar";
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1.25rem 0;
}
.poll-list li:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}
.poll-issue {
    grid-area: issue;
    font-weight: 500;
}
.poll-bar-container {
    grid-area: bar;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.poll-bar {
    flex-grow: 1;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}
.poll-bar-fill {
    height: 100%;
    background-color: #2c3e50; /* Changed to match title color */
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}
.poll-votes {
    font-size: 0.9rem;
    color: #6c757d;
    min-width: 60px;
    text-align: right;
}
.vote-btn {
    grid-area: button;
    padding: 8px 16px;
    border: 1px solid #2c3e50;
    color: #2c3e50;
    background-color: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
    font-family: 'Lora', serif;
}
.vote-btn:hover {
    background-color: #2c3e50;
    color: white;
}
.vote-btn[disabled] {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
    cursor: not-allowed;
}
