/* Enhanced Card Styling for vote.php */

/* Main application card improvements */
.application-card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.application-card:hover {
    transform: translateY(-5px);
}

.application-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 3px solid #0056b3;
    padding: 1rem 1.25rem;
}

.application-card .card-body {
    padding: 1.5rem;
}

/* Inner cards styling */
.application-card .inner-card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: 100%;
    transition: all 0.2s;
    border-radius: 0.5rem;
    overflow: hidden;
}

.application-card .inner-card:hover {
    border-color: #0056b3;
    box-shadow: 0 0.3rem 0.6rem rgba(0, 86, 179, 0.15);
}

.application-card .inner-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #0056b3;
    padding: 0.75rem 1rem;
}

.application-card .inner-card .card-body {
    padding: 1rem;
}

/* Document section styling */
.document-section {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid #0056b3;
}

.document-section h6 {
    color: #0056b3;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Language badges styling */
.language-badge {
    margin-right: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Download buttons styling */
.download-btn {
    padding: 0.375rem 0.75rem;
    margin: 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn i {
    font-size: 1rem;
}

/* Experience badge styling */
.experience-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
}

/* Voting section styling */
.voting-section {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1.25rem;
    margin-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.eligibility-alert {
    margin-bottom: 1rem;
    border-left: 4px solid #dc3545;
    background-color: #fff9f9;
}

.eligibility-alert .alert-heading {
    color: #dc3545;
    font-weight: 600;
}

.eligibility-alert ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.eligibility-alert li {
    margin-bottom: 0.25rem;
}

.vote-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-vote {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-vote i {
    font-size: 1rem;
}

.btn-vote:hover:not(.btn-disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.15);
}

.comment-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .application-card .card-header {
        padding: 0.75rem 1rem;
    }
    
    .application-card .card-body {
        padding: 1rem;
    }
    
    .vote-buttons {
        flex-direction: column;
    }
    
    .btn-vote {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .already-voted-container {
        width: 100%;
    }
}

/* Already voted container styling */
.already-voted-container {
    background-color: #f8fbff;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-top: 0.5rem;
    border: 1px solid #e6f0ff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.already-voted-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.vote-icon {
    margin-right: 1rem;
    color: #198754;
}

.already-voted-details h5 {
    color: #0d6efd;
    margin-bottom: 0.25rem;
}

.vote-details {
    border-color: #0d6efd !important;
}

.comment-text {
    max-height: 200px;
    overflow-y: auto;
    word-break: break-word;
}