.position-card {
    background: rgba(136, 120, 204, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(136, 120, 204, 0.15);
    box-shadow: 0 8px 32px rgba(136, 120, 204, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.position-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(136, 120, 204, 0.3), transparent);
}

.position-card:hover {
    background: rgba(136, 120, 204, 0.12);
    border-color: rgba(136, 120, 204, 0.25);
    box-shadow: 0 16px 48px rgba(136, 120, 204, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
}

.position-card.position-closed {
    opacity: 0.6;
    filter: grayscale(0.3);
    cursor: not-allowed;
}

.position-card.position-closed:hover {
    transform: none;
    opacity: 0.7;
}

.application-status-banner {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(136, 120, 204, 0.2);
}

.application-status-banner.open {
    background: rgba(16, 185, 129, 0.1);
}

.application-status-banner.closed {
    background: rgba(245, 158, 11, 0.1);
}

.position-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.open {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.status-badge.closed {
    background: rgba(107, 114, 128, 0.8);
    color: #d1d5db;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.position-icon {
    background: linear-gradient(135deg, #8878cc, #a855f7);
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.position-card:hover .position-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(136, 120, 204, 0.3);
}

.position-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #8878cc, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.position-description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.position-requirements {
    margin-bottom: 1.5rem;
}

.position-requirements h6 {
    color: #a855f7;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.position-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.position-requirements li {
    color: #e2e8f0;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.position-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.position-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(136, 120, 204, 0.2);
    color: #8878cc;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(136, 120, 204, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(136, 120, 204, 0.2);
}

.apply-btn {
    background: linear-gradient(135deg, rgba(136, 120, 204, 0.3), rgba(168, 85, 247, 0.3));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(136, 120, 204, 0.4);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(136, 120, 204, 0.1);
}

.apply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.apply-btn:hover::before {
    left: 100%;
}

.apply-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, rgba(136, 120, 204, 0.4), rgba(168, 85, 247, 0.4));
    border-color: rgba(136, 120, 204, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(136, 120, 204, 0.2);
}

.apply-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(107, 114, 128, 0.3);
    border-color: rgba(107, 114, 128, 0.4);
}

.apply-btn.disabled::before {
    display: none;
}

.application-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.application-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(136, 120, 204, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(136, 120, 204, 0.15);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(136, 120, 204, 0.15);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(136, 120, 204, 0.3), transparent);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(136, 120, 204, 0.2);
}

.modal-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8878cc, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.modal-close:hover {
    color: white;
    background: rgba(136, 120, 204, 0.2);
}

.modal-body {
    padding: 2rem;
}

.form-section-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(136, 120, 204, 0.2);
}

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

.form-label {
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(136, 120, 204, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    background: rgba(26, 26, 46, 0.8);
    border-color: rgba(136, 120, 204, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(136, 120, 204, 0.25);
    outline: none;
    color: white;
}

.form-control::placeholder {
    color: #94a3b8;
}

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

.submit-btn {
    background: linear-gradient(135deg, rgba(136, 120, 204, 0.3), rgba(168, 85, 247, 0.3));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(136, 120, 204, 0.4);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(136, 120, 204, 0.1);
    cursor: pointer;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, rgba(136, 120, 204, 0.4), rgba(168, 85, 247, 0.4));
    border-color: rgba(136, 120, 204, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(136, 120, 204, 0.2);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    transition: all 0.3s ease;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.form-status.loading {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-spin {
    animation: spin 1s linear infinite;
}

.application-closed-card {
    background: rgba(136, 120, 204, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(136, 120, 204, 0.15);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(136, 120, 204, 0.1);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 0.5rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .position-card {
        padding: 1.5rem;
    }
    
    .position-icon {
        width: 60px;
        height: 60px;
    }
    
    .apply-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .application-status-banner {
        top: 70px;
    }
}

@media (max-width: 576px) {
    .position-card {
        padding: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .position-title {
        font-size: 1.25rem;
    }
    
    .position-description {
        font-size: 0.9rem;
    }
    
    .apply-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}