/* VIJOBS Custom Styles */

:root {
    --primary-teal: #2d7d7d;
    --primary-teal-light: #3d8d8d;
    --primary-teal-dark: #1d6d6d;
    --accent-coral: #ff6b6b;
    --accent-orange: #ff9f43;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-teal);
}

/* Hero Section */
.bg-primary {
    background-color: var(--primary-teal) !important;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--primary-teal);
    transform: translateY(-5px);
}

.job-card {
    border-left: 4px solid var(--primary-teal);
}

.job-listing-card {
    border-left: 3px solid var(--primary-teal-light);
    transition: all 0.3s ease;
}

.job-listing-card:hover {
    border-left-color: var(--primary-teal);
    background-color: var(--bg-light);
}

.island-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.island-card:hover {
    transform: scale(1.02);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.badge.bg-light {
    border: 1px solid #dee2e6;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
}

.btn-primary:hover {
    background-color: var(--primary-teal-dark);
    border-color: var(--primary-teal-dark);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-teal);
    border-color: var(--primary-teal);
}

.btn-outline-primary:hover {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    color: white;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 0.2rem rgba(45, 125, 125, 0.25);
}

.form-select:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 0.2rem rgba(45, 125, 125, 0.25);
}

/* Job Summary Styling */
.job-summary {
    line-height: 1.7;
}

.job-summary h1,
.job-summary h2,
.job-summary h3,
.job-summary h4,
.job-summary h5,
.job-summary h6 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.job-summary ul {
    padding-left: 1.5rem;
}

.job-summary li {
    margin-bottom: 0.5rem;
}

.job-summary strong {
    color: var(--primary-teal);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-teal);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
}

.pagination .page-link:hover {
    color: var(--primary-teal-dark);
    background-color: #e9ecef;
}

/* Alerts */
.alert-info {
    background-color: rgba(45, 125, 125, 0.1);
    border-color: var(--primary-teal);
    color: var(--text-dark);
}

.alert-success {
    background-color: rgba(74, 155, 155, 0.1);
    border-color: var(--primary-teal-light);
    color: var(--text-dark);
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    color: var(--primary-teal);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-teal-dark);
}

/* Admin Styles */
.admin-sidebar {
    background-color: #f8f9fa;
    min-height: calc(100vh - 56px);
}

.admin-content {
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* Status Indicators */
.status-draft {
    background-color: #ffc107;
    color: #000;
}

.status-approved {
    background-color: #17a2b8;
    color: #fff;
}

.status-published {
    background-color: #28a745;
    color: #fff;
}

.status-rejected {
    background-color: #dc3545;
    color: #fff;
}

/* Table Improvements */
.table th {
    border-top: none;
    font-weight: 600;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.table-hover tbody tr:hover {
    background-color: rgba(45, 125, 125, 0.05);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-teal-dark);
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .pagination,
    footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus Indicators */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

/* Logo styling */
.navbar-brand img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 1px solid #000;
    }
    
    .badge {
        border: 1px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
