/* Custom Styles for Mwayiwanga Careers */
:root {
    --primary-gradient: linear-gradient(135deg, #1a56db 0%, #7e22ce 100%);
    --secondary-gradient: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    --government-gradient: linear-gradient(135deg, #1a56db, #2563eb);
    --ngo-gradient: linear-gradient(135deg, #059669, #0d9488);
    --private-gradient: linear-gradient(135deg, #7e22ce, #9333ea);
    --education-gradient: linear-gradient(135deg, #f59e0b, #d97706);
    --urgent-gradient: linear-gradient(135deg, #dc2626, #ef4444);
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.2);
    --ai-blue: #3b82f6;
    --ai-green: #10b981;
    --ai-purple: #8b5cf6;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, 
        rgba(26, 86, 219, 0.1) 0%, 
        rgba(126, 34, 206, 0.1) 50%, 
        rgba(13, 148, 136, 0.1) 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(90deg, #1a56db, #7e22ce, #0d9488, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: gradient-animation 4s ease infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 1rem 1rem 0 0;
}

/* Department-specific card borders */
.card.government::before {
    background: var(--government-gradient);
}

.card.ngo::before {
    background: var(--ngo-gradient);
}

.card.private::before {
    background: var(--private-gradient);
}

.card.education::before {
    background: var(--education-gradient);
}

.card.urgent {
    border-color: rgba(220, 38, 38, 0.3);
}

.card.urgent::before {
    background: var(--urgent-gradient);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 86, 219, 0.4);
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
}

/* Social Icons - FIXED: Only show icons, no text */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.social-icon i {
    font-size: 1rem;
}

/* Hide text labels in social icons */
.social-icon span {
    display: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon.linkedin { background: #0077b5; }
.social-icon.twitter { background: #1da1f2; }
.social-icon.facebook { background: #1877f2; }
.social-icon.instagram { 
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); 
}
.social-icon.youtube { background: #ff0000; }
.social-icon.github { background: #333; }
.social-icon.whatsapp { background: #25D366; }

/* Social sharing icons in modal - FIXED: Clean icons only */
#vacancy-detail-modal .social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin: 0.25rem;
}

#vacancy-detail-modal .social-icon i {
    font-size: 1.2rem;
}

/* Remove background from logo images */
img[src*="logo.png"],
img[src*="logo.svg"] {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Logo container in cards */
.card .bg-gradient-to-br img {
    padding: 0;
}

/* Department Badges */
.department-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.department-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.department-badge.government {
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.2), rgba(37, 99, 235, 0.3));
    border-color: rgba(26, 86, 219, 0.3);
}

.department-badge.ngo {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.2), rgba(13, 148, 136, 0.3));
    border-color: rgba(5, 150, 105, 0.3);
}

.department-badge.private {
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.2), rgba(147, 51, 234, 0.3));
    border-color: rgba(126, 34, 206, 0.3);
}

.department-badge.education {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3));
    border-color: rgba(245, 158, 11, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid #1a56db;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    margin: 0.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.tag.selected {
    background: var(--primary-gradient);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7e22ce 0%, #1a56db 100%);
}

/* Utility Classes */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shadow-3xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* AI Processing Modal Styles */
#ai-processing-modal {
    z-index: 9999;
}

#ai-processing-modal .bg-white {
    max-height: 90vh;
    overflow-y: auto;
}

/* Progress Steps */
.progress-step {
    transition: all 0.3s ease;
}

.progress-step.active {
    background: var(--ai-blue) !important;
    color: white !important;
}

.progress-step.active + .progress-line {
    background: var(--ai-blue) !important;
}

.progress-line {
    transition: all 0.3s ease;
}

/* Input Method Cards */
#ai-processing-modal .border-2 {
    transition: all 0.3s ease;
    cursor: pointer;
}

#ai-processing-modal .border-2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#ai-processing-modal .border-2.border-blue-400 {
    border-color: var(--ai-blue) !important;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.1);
}

/* File Drop Zone */
#ai-file-dropzone {
    transition: all 0.3s ease;
}

#ai-file-dropzone.drag-over {
    border-color: var(--ai-blue) !important;
    background: rgba(59, 130, 246, 0.05);
}

#ai-file-dropzone:hover:not(.drag-over) {
    border-color: var(--ai-blue);
    background: rgba(59, 130, 246, 0.02);
}

/* AI Processing State */
#ai-step-1, #ai-step-2, #ai-step-3 {
    transition: all 0.3s ease;
}

#ai-step-1.complete, 
#ai-step-2.complete, 
#ai-step-3.complete {
    color: var(--ai-green);
    font-weight: bold;
}

#ai-step-1.active::before,
#ai-step-2.active::before,
#ai-step-3.active::before {
    content: "✓";
    color: var(--ai-green);
    font-weight: bold;
    margin-right: 4px;
}

/* AI Results Panel */
.ai-result-item {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.9));
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.ai-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--ai-blue);
}

.ai-result-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-result-value {
    font-weight: 500;
    color: #1e293b;
    font-size: 1rem;
}

.ai-confidence {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-weight: 600;
}

.ai-confidence.high {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.2));
    color: var(--ai-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ai-confidence.medium {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.2));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ai-confidence.low {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.2));
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* AI Safety Badge */
#ai-processing-modal .bg-blue-50 {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

/* AI Processing Buttons */
#ai-process-text-btn,
#ai-process-file-btn {
    background: linear-gradient(135deg, var(--ai-blue), var(--ai-purple));
    position: relative;
    overflow: hidden;
}

#ai-process-text-btn::before,
#ai-process-file-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

#ai-process-text-btn:hover::before,
#ai-process-file-btn:hover::before {
    left: 100%;
}

#ai-process-text-btn:hover,
#ai-process-file-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* AI Apply Results Button */
#ai-apply-results-btn {
    background: linear-gradient(135deg, var(--ai-green), #059669);
    position: relative;
    overflow: hidden;
}

#ai-apply-results-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

#ai-apply-results-btn:hover::before {
    left: 100%;
}

#ai-apply-results-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* AI Processing Time */
#ai-processing-time {
    color: #64748b;
    font-size: 0.875rem;
}

/* AI Text Count */
#ai-text-count {
    font-weight: 600;
    color: var(--ai-blue);
}

/* File Preview */
#ai-file-preview {
    animation: fadeIn 0.3s ease;
}

#file-name {
    color: #1e293b;
}

#file-size, #file-type {
    color: #64748b;
}

/* AI Help Button */
button[onclick="showAIHelp()"] {
    color: var(--ai-blue);
    transition: all 0.3s ease;
}

button[onclick="showAIHelp()"]:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* AI Method Selection Animation */
@keyframes methodSelect {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.border-2.border-blue-400 {
    animation: methodSelect 0.3s ease;
}

/* AI Loading Animation */
@keyframes aiLoading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#ai-processing-state .loading-spinner {
    border-top-color: var(--ai-blue);
    animation: aiLoading 1s linear infinite;
}

/* AI Step Animation */
@keyframes stepPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#ai-step-1.active,
#ai-step-2.active,
#ai-step-3.active {
    animation: stepPulse 1s infinite;
}

/* Job Type Color Coding */
.type-full-time { background: var(--government-gradient); }
.type-part-time { background: var(--ngo-gradient); }
.type-remote { background: var(--private-gradient); }
.type-contract { background: var(--education-gradient); }
.type-internship { background: linear-gradient(135deg, #ec4899, #db2777); }
.type-temporary { background: linear-gradient(135deg, #6b7280, #4b5563); }

/* Stats Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Form Elements */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
    border-color: var(--ai-blue) !important;
}

.form-input-error {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-help-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-help-text.error {
    color: var(--error-color);
}

.form-help-text.success {
    color: var(--success-color);
}

.form-help-text.info {
    color: var(--info-color);
}

/* Job Content Styling - NEW for better formatting */
.vacancy-content {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #374151;
}

.vacancy-content h3, 
.vacancy-content h4 {
    color: #1f2937;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5em;
    position: relative;
}

.vacancy-content h3::before,
.vacancy-content h4::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-gradient);
}

.vacancy-content p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1em;
    text-align: justify;
}

.vacancy-content ul, 
.vacancy-content ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
    color: #4b5563;
}

.vacancy-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
    position: relative;
}

.vacancy-content ul li::before {
    content: '•';
    color: var(--ai-blue);
    font-weight: bold;
    position: absolute;
    left: -1em;
}

.vacancy-content ol {
    list-style-type: decimal;
}

.vacancy-content ol li::before {
    content: none;
}

.vacancy-content strong {
    color: #1f2937;
    font-weight: 600;
}

.vacancy-content em {
    color: #6b7280;
    font-style: italic;
}

/* Extract from Job Details */
#vacancy-detail-modal .vacancy-content {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

#vacancy-detail-modal .vacancy-content h3 {
    color: #1e40af;
    font-size: 1.25rem;
    border-bottom: 2px solid #dbeafe;
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#vacancy-detail-modal .vacancy-content h4 {
    color: #374151;
    font-size: 1.125rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Extracted Text Preview */
.extracted-text {
    white-space: pre-wrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #4b5563;
}

.extracted-text h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #dbeafe;
    padding-bottom: 0.5rem;
}

.extracted-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.extracted-text p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Markdown Content Styles */
.markdown-content {
    line-height: 1.8;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
    color: #1f2937;
}

.markdown-content h1 { font-size: 2rem; }
.markdown-content h2 { font-size: 1.75rem; }
.markdown-content h3 { font-size: 1.5rem; }
.markdown-content h4 { font-size: 1.25rem; }

.markdown-content p {
    margin-bottom: 1em;
    color: #4b5563;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1em;
    padding-left: 2em;
    color: #4b5563;
}

.markdown-content li {
    margin-bottom: 0.5em;
}

.markdown-content code {
    background: rgba(26, 86, 219, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 0.25em;
    font-family: 'Courier New', monospace;
    color: #1a56db;
}

.markdown-content pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1em;
    border-radius: 0.5em;
    overflow-x: auto;
    margin: 1em 0;
}

.markdown-content blockquote {
    border-left: 4px solid #1a56db;
    padding-left: 1em;
    margin: 1em 0;
    color: #6b7280;
    font-style: italic;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5em;
    margin: 1em 0;
}

/* Application Section */
.application-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #1a56db;
}

/* Company Logo */
.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: white;
}

/* Salary Badge */
.salary-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Experience Level */
.experience-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.experience-badge.entry {
    background: #dbeafe;
    color: #1e40af;
}

.experience-badge.mid {
    background: #fef3c7;
    color: #92400e;
}

.experience-badge.senior {
    background: #fce7f3;
    color: #9d174d;
}

.experience-badge.executive {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Deadline Alert */
.deadline-alert {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    color: #92400e;
}

.deadline-alert.urgent {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    color: #dc2626;
    animation: pulse 2s infinite;
}

/* PDF Document Styling */
.pdf-document {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pdf-document i {
    font-size: 2rem;
    color: #dc2626;
}

/* Department Header */
.department-header {
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.1), rgba(37, 99, 235, 0.2));
    border-left: 4px solid #1a56db;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Share Button Enhancements - FIXED: Clean circular icons */
.share-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Print Styles for Job Details */
@media print {
    .card,
    .vacancy-detail-modal {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .social-icon,
    .filter-btn,
    .btn-primary:not(.apply-button) {
        display: none !important;
    }
    
    .markdown-content {
        font-size: 12pt;
        line-height: 1.6;
    }
    
    .pdf-document {
        page-break-inside: avoid;
    }
    
    /* Hide AI Modal in print */
    #ai-processing-modal {
        display: none !important;
    }
}

/* Advanced Filter Panel */
.advanced-filter {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.advanced-filter select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 100%;
}

.advanced-filter label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: block;
}

/* Logo fallback styles */
.logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a56db, #7e22ce);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.logo-text {
    font-weight: bold;
    font-size: 20px;
    background: linear-gradient(90deg, #1a56db, #7e22ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ensure images maintain aspect ratio and have no unwanted backgrounds */
img {
    max-width: 100%;
    height: auto;
    background: transparent !important;
}

/* Remove all backgrounds from logo images */
img[src*="logo"],
nav img,
footer img,
.card img[onerror*="logo"] {
    background: transparent !important;
    padding: 0 !important;
}

/* Fix for logo in cards - ensure no gradient background interferes */
.card .bg-gradient-to-br {
    position: relative;
}

.card .bg-gradient-to-br img {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

/* Clear background for all logo containers */
.logo-container {
    background: transparent !important;
}

/* Fix social sharing section in modal */
#vacancy-detail-modal .flex-wrap.gap-3 {
    gap: 0.5rem !important;
}

#vacancy-detail-modal .social-icon {
    margin: 0;
}

/* Ensure social icons are clearly visible */
.social-icon[style*="background"] {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Logo optimization for different containers */
nav img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

footer img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.card .bg-gradient-to-br img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

#vacancy-detail-modal .bg-gradient-to-br img {
    width: 128px;
    height: 128px;
    object-fit: contain;
}

/* Search results logo */
#search-results img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* Loading state for images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Accessibility improvements for social icons */
.social-icon:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Tooltip for social icons */
.social-icon {
    position: relative;
}

.social-icon::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.social-icon:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 5px);
}

/* AI Modal Specific Tooltips */
#ai-processing-modal .social-icon::after {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

/* AI Modal Accessibility */
#ai-processing-modal button:focus {
    outline: 2px solid var(--ai-blue);
    outline-offset: 2px;
}

#ai-processing-modal input:focus,
#ai-processing-modal textarea:focus {
    outline: 2px solid var(--ai-blue);
    outline-offset: 2px;
}

/* AI Results Confidence Colors */
.ai-confidence::before {
    content: "✓";
    margin-right: 2px;
    font-weight: bold;
}

.ai-confidence.high::before {
    content: "✓";
    color: var(--ai-green);
}

.ai-confidence.medium::before {
    content: "⚠";
    color: #f59e0b;
}

.ai-confidence.low::before {
    content: "?";
    color: #ef4444;
}

/* AI Scan Status */
.ai-scan-status {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.ai-scan-status.scanning {
    background: var(--ai-blue);
    animation: scanning 1.5s infinite;
}

.ai-scan-status.complete {
    background: var(--ai-green);
}

.ai-scan-status.error {
    background: #ef4444;
}

@keyframes scanning {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* AI Processing Modal Custom Scrollbar */
#ai-processing-modal ::-webkit-scrollbar {
    width: 6px;
}

#ai-processing-modal ::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 3px;
}

#ai-processing-modal ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--ai-blue), var(--ai-purple));
    border-radius: 3px;
}

/* AI Safety Shield Animation */
@keyframes shieldPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

#ai-processing-modal .fa-shield-alt {
    animation: shieldPulse 2s infinite;
}

/* Contact Requirements Note */
.contact-requirements {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border: 1px solid #93c5fd;
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1rem 0;
}

.contact-requirements h4 {
    color: #1e40af;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-requirements p {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

.contact-requirements strong {
    color: #1e40af;
}

/* Form Field Groups */
.form-field-group {
    margin-bottom: 1.5rem;
}

.form-field-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-field-group label i {
    margin-right: 0.5rem;
    color: #6b7280;
}

/* Optional Field Indicator */
.optional-field {
    color: #6b7280;
    font-weight: 400;
}

.optional-field::after {
    content: " (Optional)";
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Form Validation States */
.form-input:valid {
    border-color: #10b981 !important;
}

.form-input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ef4444 !important;
}

/* Form Section Headers */
.form-section-header {
    border-left: 4px solid #1a56db;
    padding-left: 1rem;
    margin: 2rem 0 1rem;
    color: #1e40af;
    font-weight: 600;
}

.form-section-header i {
    margin-right: 0.5rem;
}

/* Job Details Textarea Formatting */
#content {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    tab-size: 4;
    white-space: pre-wrap;
}

#content::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1.5rem;
    }
    
    .filter-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .social-icon i {
        font-size: 0.875rem;
    }
    
    .department-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Adjust social icons in modal for mobile */
    #vacancy-detail-modal .social-icon {
        width: 40px;
        height: 40px;
        margin: 0.2rem;
    }
    
    #vacancy-detail-modal .social-icon i {
        font-size: 1rem;
    }
    
    /* AI Modal Responsive */
    #ai-processing-modal .p-6 {
        padding: 1rem;
    }
    
    #ai-processing-modal .text-3xl {
        font-size: 1.5rem;
    }
    
    #ai-processing-modal .w-24 {
        width: 2rem;
    }
    
    #ai-text-input {
        height: 200px;
    }
    
    #ai-file-dropzone {
        padding: 2rem 1rem;
    }
    
    #ai-file-dropzone .text-6xl {
        font-size: 3rem;
    }
    
    #ai-file-dropzone .text-2xl {
        font-size: 1.25rem;
    }
    
    /* Form responsive adjustments */
    .vacancy-content h3 {
        font-size: 1.125rem;
    }
    
    .vacancy-content h4 {
        font-size: 1rem;
    }
    
    .vacancy-content p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    #content {
        font-size: 0.8125rem;
    }
}

@media (max-width: 640px) {
    .department-filters {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .department-filters::-webkit-scrollbar {
        height: 4px;
    }
    
    /* AI Modal mobile optimizations */
    #ai-processing-modal .sticky.top-0 {
        position: relative;
    }
    
    #ai-results-container {
        max-height: 300px;
        overflow-y: auto;
    }
    
    /* Form mobile adjustments */
    .form-section-header {
        margin: 1.5rem 0 0.75rem;
        font-size: 1.125rem;
    }
    
    .contact-requirements {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }
}

@media (max-width: 480px) {
    .card {
        border-radius: 0.75rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* AI Modal Mobile */
    #ai-processing-modal {
        padding: 0.5rem;
    }
    
    #ai-processing-modal .max-w-4xl {
        width: 100%;
    }
    
    #ai-processing-modal .grid-cols-1 {
        grid-template-columns: 1fr;
    }
    
    #ai-processing-modal .flex.justify-end.space-x-4 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #ai-processing-modal .flex.justify-end.space-x-4 button {
        width: 100%;
    }
    
    /* Form mobile */
    #post-vacancy-panel {
        padding: 1rem;
    }
    
    .grid.md\:grid-cols-2,
    .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vacancy-content h3::before,
    .vacancy-content h4::before {
        width: 30px;
    }
}

/* Form Action Buttons */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.form-actions .left-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-actions .right-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Publish Without AI Warning */
.publish-warning-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.publish-warning-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.publish-warning-btn i {
    margin-right: 0.5rem;
}

/* Form Field Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--ai-blue) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Character Counter */
.char-counter {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: right;
    margin-top: 0.25rem;
}

.char-counter.near-limit {
    color: #f59e0b;
    font-weight: 600;
}

.char-counter.over-limit {
    color: #ef4444;
    font-weight: bold;
}

/* Tag Input Styling */
.tag-input-container {
    position: relative;
}

.tag-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
}

.tag-suggestion-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tag-suggestion-item:hover {
    background-color: #f3f4f6;
}

/* Required Field Indicator */
.required-field::after {
    content: " *";
    color: #ef4444;
    font-weight: bold;
}

/* Form Section Spacing */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Form Field Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Form Help Text with Icons */
.help-text-with-icon {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.help-text-with-icon i {
    color: #6b7280;
    margin-top: 0.125rem;
}

/* Form Field with Icon */
.field-with-icon {
    position: relative;
}

.field-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.field-with-icon input,
.field-with-icon textarea,
.field-with-icon select {
    padding-left: 3rem !important;
}

/* Form Validation Message */
.validation-message {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.25rem;
    display: none;
}

.validation-message.error {
    display: block;
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.validation-message.success {
    display: block;
    background-color: #d1fae5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* Form Field Group with Validation */
.field-group {
    margin-bottom: 1.5rem;
}

.field-group.error input,
.field-group.error textarea,
.field-group.error select {
    border-color: #ef4444 !important;
}

.field-group.success input,
.field-group.success textarea,
.field-group.success select {
    border-color: #10b981 !important;
}

/* Quick Publish Button */
.quick-publish-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

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

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

.quick-publish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

/* Postal Address Field Specific */
#postalAddress {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

#postalAddress::placeholder {
    font-style: italic;
    color: #9ca3af;
}

/* Contact Information Group */
.contact-info-group {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #dbeafe;
}

.contact-info-group h3 {
    color: #1e40af;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info-group h3 i {
    color: #3b82f6;
}

/* Enhanced Tag Display */
.selected-tags-container {
    min-height: 3rem;
    border: 1px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: #f9fafb;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #1a56db, #7e22ce);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    margin: 0.25rem;
    animation: fadeIn 0.3s ease;
}

.selected-tag button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 0.5rem;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.selected-tag button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Form Submit Button with AI Icon */
#submit-btn {
    position: relative;
    overflow: hidden;
}

#submit-btn i.fa-robot {
    margin-right: 0.5rem;
    animation: gentlePulse 2s infinite;
}

@keyframes gentlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Form Loading State */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Success Animation */
@keyframes formSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.form-success {
    animation: formSuccess 0.5s ease;
}

/* Responsive Form Layout */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions .left-actions,
    .form-actions .right-actions {
        width: 100%;
        justify-content: center;
    }
    
    .form-actions .left-actions {
        margin-bottom: 1rem;
    }
    
    .contact-info-group {
        padding: 1rem;
    }
    
    .field-with-icon i {
        left: 0.75rem;
    }
    
    .field-with-icon input,
    .field-with-icon textarea,
    .field-with-icon select {
        padding-left: 2.5rem !important;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .vacancy-content {
        color: #d1d5db;
    }
    
    .vacancy-content h3,
    .vacancy-content h4 {
        color: #e5e7eb;
        border-bottom-color: #4b5563;
    }
    
    .vacancy-content p,
    .vacancy-content li {
        color: #9ca3af;
    }
    
    .vacancy-content strong {
        color: #f3f4f6;
    }
    
    .form-input {
        background-color: #374151;
        color: #f3f4f6;
        border-color: #4b5563;
    }
    
    .form-input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }
}

/* Print Optimization */
@media print {
    .vacancy-content {
        font-size: 11pt;
        line-height: 1.5;
    }
    
    .vacancy-content h3 {
        font-size: 13pt;
        page-break-after: avoid;
    }
    
    .vacancy-content h4 {
        font-size: 12pt;
        page-break-after: avoid;
    }
    
    .vacancy-content ul,
    .vacancy-content ol {
        page-break-inside: avoid;
    }
    
    .vacancy-content p {
        orphans: 3;
        widows: 3;
    }
}
