/**
 * Dashboard CSS
 * Dashboard and admin page styling
 */

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
}

/* Application Cards */
.application-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.applicant-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.application-body {
    padding: 20px 0;
}

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

.info-item {
    padding: 10px 0;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--color-primary);
}

/* Certificate Preview */
.certificate-preview {
    margin-top: 20px;
    padding: 20px;
    background: var(--color-bg-light);
    border-radius: 5px;
}

.certificate-preview img {
    max-width: 300px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Application Actions */
.application-actions {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-approve {
    background: var(--color-success);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-approve:hover {
    background: #218838;
}

.btn-reject {
    background: var(--color-error);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-reject:hover {
    background: #c82333;
}

/* Status Cards */
.pending-status-card {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.status-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-light);
}

.status-icon.pending {
    color: var(--color-warning);
}

.status-icon.approved {
    color: var(--color-success);
}

.application-details {
    background: var(--color-bg-light);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.detail-item:last-child {
    border-bottom: none;
}

/* Next Steps */
.next-steps {
    margin: 30px 0;
    text-align: left;
}

.next-steps ol {
    list-style: decimal;
    padding-left: 20px;
}

.next-steps li {
    padding: 10px 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .application-actions {
        flex-direction: column;
    }
}
