.application-details {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.application-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.applicant-info h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.job-title {
    margin: 0.5rem 0 0;
    color: #666;
    font-size: 1rem;
}

.application-content {
    padding: 1.5rem;
}

.section {
    margin-bottom: 2rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section h3 {
    margin: 0 0 1rem;
    color: #333;
    font-size: 1.2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.detail-item p {
    margin: 0;
    color: #333;
    font-size: 1rem;
}

.cover-letter {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    white-space: pre-wrap;
    line-height: 1.6;
}

.resume-preview {
    margin-top: 1rem;
}

.no-resume {
    color: #666;
    font-style: italic;
}

.application-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.reviewed {
    background: #cce5ff;
    color: #004085;
}

.status-badge.interviewed {
    background: #d4edda;
    color: #155724;
}

.status-badge.interview_scheduled {
    background: #e2e3e5;
    color: #383d41;
}

.status-badge.accepted {
    background: #d4edda;
    color: #155724;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

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

.modal-content {
    position: relative;
    background: #fff;
    margin: 10% auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
}

.modal-body {
    padding: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .application-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .application-status {
        align-self: flex-start;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .application-actions {
        flex-direction: column;
    }

    .application-actions .btn {
        width: 100%;
    }

    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
}