#grievance-form-container {
    width: 100%;
    background: #fff;
    font-family: "Open Sans", Sans-serif;
}

#grievance-form h3 {
    color: #000000;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

#grievance-form h4 {
    color: #444;
    margin: 25px 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.grievance-section {
    margin-bottom: 25px;
}

.grievance-section.formheader{
    margin-bottom: 40px;
}

.stakeholder-types {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px dashed #E3E3E3;
    flex-wrap: wrap;
}

.stakeholder-types label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #000000;
    font-weight: 600;
}

.stakeholder-types input[type="radio"] {
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 30px !important;
}

.form-group label {
    font-size: 12px;
    color: #777771;
    position: absolute !important;
    top: -10px !important;
    left: 15px !important;
    background: #fff !important;
    padding: 0px 6px !important;
    z-index: 1 !important;

}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #b7c1ff !important;
    border-radius: 5px;
    font-size: 13px;
    transition: border-color 0.3s ease;
    background: #fff;
    height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    background: #f8f9ff;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid #4152BC;
    margin: 20px 0;
}

.form-note small {
    color: #666;
}

.form-submit {
    text-align: left;
    margin: 20px 0;
}

#submit-grievance {
    background: #4152BC;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#submit-grievance:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

#form-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#form-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.status-pending { color: #d63638; }
.status-in-progress { color: #dba617; }
.status-resolved { color: #00a32a; }

.hidden {
    display: none !important;
}

/* Conditional form fields based on stakeholder type */
.student-only,
.employee-only {
    display: none;
}

.student-only.show,
.employee-only.show {
    display: flex;
}

/* Admin Modal Styles */
#grievance-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.grievance-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 5px;
}

.grievance-modal-header {
    padding: 15px 20px;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grievance-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.grievance-modal-close:hover {
    color: black;
}

.grievance-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.grievance-details-row {
    margin-bottom: 10px;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.grievance-details-label {
    font-weight: bold;
    display: inline-block;
    width: 150px;
}

.grievance-status-update {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

/* Admin Search Box */
.search-box {
    margin: 15px 0;
}

.search-box form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box input[type="search"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Pagination Links */
.pagination-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-links a,
.pagination-links span {
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.pagination-links a:hover {
    background-color: #f5f5f5;
}

.pagination-links .tablenav-paging-text {
    font-weight: bold;
}

@media (max-width: 768px) {
    #grievance-form-container {
        margin: 10px;
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stakeholder-types {
        flex-direction: column;
        gap: 10px;
    }
    
    .grievance-modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .grievance-details-label {
        width: 120px;
        font-size: 14px;
    }
}