* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --light-gray: #ecf0f1;
    --dark-gray: #34495e;
    --border-color: #bdc3c7;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* ==================== Login Page ==================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 10vh;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

.login-box .subtitle {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 30px;
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: #2980b9;
}

.btn-login:active {
    transform: scale(0.98);
}

.footer-text {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    font-size: 13px;
    color: var(--dark-gray);
}

/* ==================== Messages ==================== */
.error-message,
.success-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    background-color: #fadbd8;
    color: #c0392b;
    border-left: 4px solid var(--error-color);
}

.success-message {
    background-color: #d5f4e6;
    color: #27ae60;
    border-left: 4px solid var(--success-color);
}

.error-message .icon,
.success-message .icon {
    font-weight: bold;
    font-size: 18px;
}

/* ==================== Dashboard ==================== */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: white;
    box-shadow: var(--box-shadow);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header h1 {
    color: var(--primary-color);
    font-size: 28px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome {
    color: var(--dark-gray);
    font-weight: 600;
}

.btn-logout {
    background-color: var(--error-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #c0392b;
}

.dashboard-content {
    flex: 1;
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
    width: 100%;
}

.form-section {
    background: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    animation: slideUp 0.5s ease;
}

/* ==================== Candidate Info Box ==================== */
.candidate-info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.candidate-info-box h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-item span {
    font-size: 18px;
    font-weight: 600;
}

/* ==================== Objection Form ==================== */
.objection-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--light-gray);
}

.objection-form h2 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
}

.form-description {
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 20px;
    background-color: #fef5e7;
    border-left: 4px solid #f39c12;
    padding: 12px 15px;
    border-radius: 4px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
}

.required {
    color: var(--error-color);
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
    min-height: 150px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}

#char-count {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--dark-gray);
}

.btn-submit {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: #229954;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* ==================== Objection Status Box ==================== */
.objection-status-box {
    background: #f8f9fa;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.objection-status-box h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 20px;
}

.status-info {
    background-color: #fef5e7;
    border-left: 4px solid #f39c12;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.status-info .info-note {
    color: #7d6608;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

.status-item.full-width {
    flex-direction: column;
    align-items: stretch;
}

.status-item:last-child {
    border-bottom: none;
}

.status-item label {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 120px;
}

.submitted-objection-text {
    background: white;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
    margin-top: 10px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--dark-gray);
    font-size: 14px;
}

.admin-remarks-box {
    background: white;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--success-color);
    margin-top: 10px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--dark-gray);
    font-size: 14px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.submitted {
    background-color: #cfe8f3;
    color: #2980b9;
}

.status-badge.approved {
    background-color: #d5f4e6;
    color: #27ae60;
}

.status-badge.rejected {
    background-color: #fadbd8;
    color: #c0392b;
}

.status-badge.pending {
    background-color: #fdebd0;
    color: #d68910;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer p {
    margin: 0;
    font-size: 13px;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .user-info {
        flex-direction: column;
        justify-content: center;
    }

    .form-section {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .candidate-info-box {
        padding: 20px;
    }

    .candidate-info-box h2 {
        font-size: 18px;
    }

    .info-item span {
        font-size: 16px;
    }

    .status-item {
        flex-direction: column;
        gap: 5px;
    }

    .status-item label {
        margin-bottom: 8px;
    }

    .btn-submit {
        width: 100%;
    }

    .login-box h1 {
        font-size: 24px;
    }

    .objection-status-box {
        padding: 15px;
    }

    .submitted-objection-text,
    .admin-remarks-box {
        padding: 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 20px;
    }

    .login-box h1 {
        font-size: 20px;
    }

    .form-section {
        padding: 15px;
    }

    .candidate-info-box {
        padding: 15px;
    }

    .objection-status-box {
        padding: 15px;
    }
}
