/* Career Management System Styles */

/* Career Page Styles */
.career-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
}

.career-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.career-hero-content {
    position: relative;
    z-index: 2;
}

.career-position-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.career-position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #4f46e5;
}

.career-position-header {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.career-position-title {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.career-position-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
}

.career-position-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.career-position-body {
    padding: 1.5rem;
}

.career-position-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.career-position-requirements {
    margin-top: 1rem;
}

.career-position-requirements h4 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.career-position-requirements ul {
    list-style-type: none;
    padding-left: 0;
}

.career-position-requirements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.25rem;
    color: #4b5563;
}

.career-position-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.career-position-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.career-apply-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.career-apply-btn:hover {
    background: #4338ca;
}

.career-apply-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.career-date-posted {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Career Application Form */
.career-application-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.career-form-group {
    margin-bottom: 1.5rem;
}

.career-form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.career-form-input,
.career-form-textarea,
.career-form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.career-form-input:focus,
.career-form-textarea:focus,
.career-form-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.career-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.career-form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.career-form-help {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.career-file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s;
}

.career-file-upload:hover,
.career-file-upload.dragover {
    border-color: #4f46e5;
    background-color: #f9fafb;
}

.career-file-upload-label {
    display: block;
    cursor: pointer;
}

.career-file-upload-text {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.career-file-upload-button {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.career-file-upload-button:hover {
    background: #e5e7eb;
}

.career-form-submit {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.career-form-submit:hover {
    background: #4338ca;
}

.career-form-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.career-form-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

/* Career Application Success Message */
.career-success-message {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.career-success-message h3 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.career-success-message p {
    margin: 0;
}

/* Career Filter and Search */
.career-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.career-search-box {
    flex: 1;
    min-width: 250px;
}

.career-filter-select {
    min-width: 200px;
}

.career-filter-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

/* Career Statistics */
.career-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.career-stat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    text-align: center;
}

.career-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.career-stat-label {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Career Application Table */
.career-application-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.career-application-table th {
    background: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.career-application-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.career-application-table tr:last-child td {
    border-bottom: none;
}

.career-application-table tr:hover {
    background: #f9fafb;
}

.career-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.career-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.career-status-badge.reviewing {
    background: #dbeafe;
    color: #1e40af;
}

.career-status-badge.accepted {
    background: #d1fae5;
    color: #065f46;
}

.career-status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.career-action-buttons {
    display: flex;
    gap: 0.5rem;
}

.career-action-button {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.career-action-button.view {
    background: #e5e7eb;
    color: #374151;
}

.career-action-button.view:hover {
    background: #d1d5db;
}

.career-action-button.edit {
    background: #dbeafe;
    color: #1e40af;
}

.career-action-button.edit:hover {
    background: #bfdbfe;
}

.career-action-button.delete {
    background: #fee2e2;
    color: #991b1b;
}

.career-action-button.delete:hover {
    background: #fecaca;
}

/* Responsive Design */
@media (max-width: 768px) {
    .career-position-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .career-position-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .career-filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .career-search-box,
    .career-filter-select {
        min-width: 100%;
    }
    
    .career-stats-container {
        grid-template-columns: 1fr;
    }
    
    .career-application-table {
        font-size: 0.875rem;
    }
    
    .career-application-table th,
    .career-application-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .career-action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .career-application-form {
        padding: 1rem;
    }
    
    .career-position-header {
        padding: 1rem;
    }
    
    .career-position-body {
        padding: 1rem;
    }
    
    .career-position-footer {
        padding: 1rem;
    }
    
    /* Enhanced mobile touch targets */
    .career-apply-btn,
    .career-form-submit,
    .career-action-button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
    }
    
    /* Improved mobile file upload */
    .career-file-upload {
        padding: 1rem;
    }
    
    .career-file-upload-button {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    /* Better mobile form spacing */
    .career-form-group {
        margin-bottom: 1.25rem;
    }
    
    .career-form-input,
    .career-form-textarea,
    .career-form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    /* Mobile modal improvements */
    #application-modal {
        padding: 1rem;
    }
    
    #application-modal .bg-white,
    #application-modal .dark\\:bg-slate-950 {
        max-height: 95vh;
        margin: 0;
    }
    
    /* Mobile filter improvements */
    .career-filter-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .career-search-box,
    .career-filter-select {
        width: 100%;
    }
}

/* Enhanced File Upload Styles */
.career-file-upload-enhanced {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #f9fafb;
    position: relative;
}

.career-file-upload-enhanced:hover,
.career-file-upload-enhanced.dragover {
    border-color: #4f46e5;
    background-color: #ede9fe;
}

.career-file-upload-enhanced.uploading {
    border-color: #10b981;
    background-color: #ecfdf5;
}

.career-file-upload-label {
    display: block;
    cursor: pointer;
    position: relative;
}

.career-file-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #6b7280;
}

.career-file-upload-text {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.career-file-upload-subtext {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.career-file-upload-button {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-block;
}

.career-file-upload-button:hover {
    background: #4338ca;
}

.career-file-upload-input {
    display: none;
}

/* File Progress Bar */
.career-upload-progress {
    margin-top: 1rem;
    display: none;
}

.career-upload-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.career-upload-progress-fill {
    height: 100%;
    background-color: #4f46e5;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.career-upload-progress-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

/* File Preview List */
.career-file-preview-list {
    margin-top: 1.5rem;
    display: none;
}

.career-file-preview-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.career-file-preview-item:hover {
    border-color: #4f46e5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.career-file-preview-icon {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.career-file-preview-icon.pdf {
    background-color: #fee2e2;
    color: #dc2626;
}

.career-file-preview-icon.doc,
.career-file-preview-icon.docx {
    background-color: #dbeafe;
    color: #2563eb;
}

.career-file-preview-icon.jpg,
.career-file-preview-icon.png {
    background-color: #e0e7ff;
    color: #4f46e5;
}

.career-file-preview-info {
    flex: 1;
    min-width: 0;
}

.career-file-preview-name {
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.career-file-preview-size {
    font-size: 0.875rem;
    color: #6b7280;
}

.career-file-preview-remove {
    margin-left: 0.5rem;
    background: #ef4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.career-file-preview-remove:hover {
    background: #dc2626;
}

/* File Download Interface */
.career-file-download-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.career-file-download-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    max-width: 300px;
}

.career-file-download-item:hover {
    border-color: #4f46e5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.career-file-download-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.career-file-download-info {
    flex: 1;
    min-width: 0;
}

.career-file-download-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.career-file-download-size {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Batch Download */
.career-batch-download {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.career-batch-download:hover {
    background: #059669;
}

/* Error and Success Messages */
.career-notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.career-notification {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.career-notification.success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.career-notification.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.career-notification.warning {
    background-color: #fffbeb;
    border: 1px solid #fed7aa;
    color: #92400e;
}

.career-notification.info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.career-notification-icon {
    flex-shrink: 0;
}

.career-notification-content {
    flex: 1;
}

.career-notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.career-notification-message {
    font-size: 0.875rem;
}

.career-notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.career-notification-close:hover {
    opacity: 1;
}

/* Error Pages */
.career-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    padding: 2rem;
}

.career-error-container {
    max-width: 500px;
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.career-error-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: #ef4444;
}

.career-error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.career-error-message {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.career-error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.career-error-button {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.career-error-button.primary {
    background: #4f46e5;
    color: white;
}

.career-error-button.primary:hover {
    background: #4338ca;
}

.career-error-button.secondary {
    background: #f3f4f6;
    color: #374151;
}

.career-error-button.secondary:hover {
    background: #e5e7eb;
}

/* Multi-step Form Progress Indicators */
.career-form-progress {
    margin-bottom: 2rem;
}

.career-form-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.career-form-progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
    transform: translateY(-50%);
}

.career-form-progress-line-fill {
    height: 100%;
    background: #4f46e5;
    transition: width 0.3s ease;
}

.career-form-progress-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.career-form-progress-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.career-form-progress-step.active .career-form-progress-circle {
    background: #4f46e5;
    color: white;
}

.career-form-progress-step.completed .career-form-progress-circle {
    background: #10b981;
    color: white;
}

.career-form-progress-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    max-width: 80px;
}

.career-form-progress-step.active .career-form-progress-label,
.career-form-progress-step.completed .career-form-progress-label {
    color: #1f2937;
    font-weight: 500;
}