/* Jobs Page Styles */

/* Card hover effects */
.card {
    transition: all 0.3s ease;
    background-color: #000000;
    border: 1px solid #333333;
    color: #ffffff;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Better contrast for text */
.text-muted {
    color: #6c757d !important;
}

.card-body {
    color: #ffffff;
}

/* Form labels with better contrast */
.form-label {
    color: #ffffff;
    font-weight: 600;
}

/* Badge improvements */
.badge {
    font-weight: 500;
    color: #ffffff;
}

.badge.bg-primary {
    background-color: #000000 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000000 !important;
}

.badge.bg-info {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* Job card specific styles */
.job-card {
    border-left: 4px solid #000000;
}

.job-card.featured {
    border-left: 4px solid #ffc107;
}

/* Badge styles */
.badge {
    font-weight: 500;
}

/* Form styles */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #000000;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

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

.btn-lg {
    padding: 12px 24px;
}

/* Better button colors */
.btn-primary {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
}

.btn-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #ffffff !important;
}

.btn-success:hover {
    background-color: #157347 !important;
    border-color: #146c43 !important;
}

.btn-outline-primary {
    color: #000000 !important;
    border-color: #000000 !important;
}

.btn-outline-primary:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-outline-secondary:hover {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

/* Hero section gradient */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    z-index: -1;
}

/* Breadcrumb styles */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Stats cards */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Contact info cards */
.contact-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Category list styles */
.list-group-item {
    border: none;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: #000000;
    border-color: #000000;
}

/* Icon styles */
.icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Better icon colors */
.text-primary {
    color: #000000 !important;
}

.text-success {
    color: #198754 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #333333 !important;
}

.text-secondary {
    color: #6c757d !important;
}

/* Background colors for icon containers */
.bg-primary.bg-opacity-10 {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-success.bg-opacity-10 {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-info.bg-opacity-10 {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.bg-secondary.bg-opacity-10 {
    background-color: rgba(108, 117, 125, 0.1) !important;
}

/* Card header improvements */
.card-header {
    border-bottom: 1px solid #e9ecef;
}

.card-header.bg-primary {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.card-header.bg-success {
    background-color: #198754 !important;
    color: #ffffff !important;
}

.card-header.bg-info {
    background-color: #0dcaf0 !important;
    color: #000000 !important;
}

.card-header.bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    /* Mobile-specific improvements */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Better mobile navigation */
    .breadcrumb {
        font-size: 0.875rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 0.5rem;
    }
    
    /* Mobile form improvements */
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 15px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile button improvements */
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
    
    /* Mobile grid adjustments */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col-md-6, .col-lg-4, .col-lg-8 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Mobile sidebar adjustments */
    .col-lg-4 {
        margin-top: 2rem;
    }
    
    /* Mobile badge improvements */
    .badge {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Mobile text adjustments */
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    h4, .h4 {
        font-size: 1.1rem;
    }
    
    h5, .h5 {
        font-size: 1rem;
    }
    
    /* Mobile spacing */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .p-4 {
        padding: 1rem !important;
    }
    
    /* Mobile icon improvements */
    .icon-wrapper {
        width: 35px;
        height: 35px;
    }
    
    /* Mobile list improvements */
    .list-group-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Mobile filter improvements */
    .form-select {
        margin-bottom: 1rem;
    }
    
    /* Mobile job card improvements */
    .job-card .row {
        flex-direction: column;
    }
    
    .job-card .col-md-8,
    .job-card .col-md-4 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .job-card .text-md-end {
        text-align: left !important;
    }
    
    .job-card .d-grid {
        display: block !important;
    }
    
    .job-card .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Smaller text for very small screens */
    h1, .h1 {
        font-size: 1.5rem;
    }
    
    h2, .h2 {
        font-size: 1.25rem;
    }
    
    h3, .h3 {
        font-size: 1.1rem;
    }
    
    /* Compact spacing */
    .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    /* Compact badges */
    .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Compact icons */
    .icon-wrapper {
        width: 30px;
        height: 30px;
    }
    
    /* Compact list items */
    .list-group-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Better touch targets */
    .btn, .form-control, .form-select {
        min-height: 44px; /* iOS recommended touch target size */
    }
    
    /* Compact contact info */
    .contact-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    /* Compact stats */
    .stats-number {
        font-size: 1.5rem;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        border-width: 0.5px;
    }
    
    .btn {
        border-width: 0.5px;
    }
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-radius: 10px;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #333333;
        color: #ffffff;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-item:hover {
        background-color: #333333;
        color: #ffffff;
    }
}

/* Mobile form specific improvements */
@media (max-width: 768px) {
    /* File upload improvements */
    input[type="file"] {
        font-size: 16px;
        padding: 10px;
    }
    
    /* Textarea improvements */
    textarea.form-control {
        min-height: 120px;
        font-size: 16px;
    }
    
    /* Input group improvements */
    .input-group-text {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    /* Form validation improvements */
    .text-danger {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
    
    .form-text {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
}

/* Mobile accessibility improvements */
@media (max-width: 768px) {
    /* Better focus indicators */
    .btn:focus,
    .form-control:focus,
    .form-select:focus {
        outline: 2px solid #000000;
        outline-offset: 2px;
    }
    
    /* Better contrast for small text */
    .text-muted {
        color: #6c757d !important;
    }
    
    /* Better spacing for touch targets */
    .list-group-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Better button spacing */
    .btn + .btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Animation for job cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success message styles */
.alert-success {
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

/* Error message styles */
.alert-danger {
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

/* File upload styles */
.file-upload-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-upload-wrapper .file-upload-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #000000;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-wrapper .file-upload-btn:hover {
    background: #333333;
}

/* Progress bar for file upload */
.upload-progress {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #000000, #333333);
    transition: width 0.3s ease;
}

/* Share buttons */
.share-btn {
    transition: all 0.3s ease;
}

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

/* Salary badge */
.salary-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

/* Featured badge */
.featured-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #212529;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-block;
}

/* Category badge */
.category-badge {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-block;
}

/* Stats numbers */
.stats-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact info icons */
.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 15px;
}

/* Responsive grid adjustments */
@media (max-width: 576px) {
    .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .d-flex.justify-content-center {
        flex-direction: column;
        align-items: center;
    }
    
    .gap-4 {
        gap: 0.5rem !important;
    }
}
