:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #000080 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.2);
}

body {
    overflow-x: hidden;
}

.swal2-popup {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    border-radius: 1rem;
}

img.karir-pict {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.icon {
    font-size: 35px;
    width: 44px;
    height: 44px;
    padding-right: .5em;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

/* Button styles */
.btn-white {
    background: white;
    color: #667eea;
    font-weight: 600;
}

.btn-white:hover {
    background: #f8f9fa;
    color: #5568d3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    background: transparent;
}

.btn-outline-white:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Card enhancements */
.card {
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.hover-shadow-lg:hover {
    box-shadow: var(--shadow-xl) !important;
}

.job-card {
    cursor: pointer;
    border-radius: 1rem !important;
    overflow: hidden;
}

.job-card:hover {
    box-shadow: var(--shadow-lg) !important;
}

/* Icon improvements */
.btn-circle {
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal improvements */
.modal-content {
    border-radius: 1.5rem;
}

.form-floating > label {
    display: flex;
    align-items: center;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Divider */
.divider-icon {
    position: relative;
    text-align: center;
}

.divider-icon:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e9ecef;
}

.divider-icon:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e9ecef;
}

.divider-icon i {
    background: white;
    padding: 0 1rem;
    color: #dee2e6;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Badge improvements */
.badge {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Password toggle */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 5;
    color: #6c757d;
}

.password-toggle:hover {
    color: #495057;
}

/* Spinner in modal */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ============================================ */
/* FRONTEND LAYOUT STYLES */
/* ============================================ */

/* Mobile overflow fixes */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

.content-wrapper {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

.container, .container-fluid {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Desktop logo display */
.mobile-logo {
    display: none !important;
}

.desktop-logo {
    display: inline !important;
    height: 40px !important;
}

/* ============================================ */
/* INDEX PAGE STYLES */
/* ============================================ */

/* Hero Section */
.hero-section {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

#heroCarousel, .carousel-inner, .carousel-item {
    overflow: hidden !important;
    max-width: 100vw !important;
}

.hero-carousel-img {
    max-width: 100% !important;
    width: 100% !important;
}

/* Fix for job listing icons on mobile */
.job-card .icon i,
.job-card .fa-solid,
.job-card .uil {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.job-card .btn-circle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Detail Lowongan Styles */
.job-detail-container {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    /*animation: fadeInUp 0.5s ease-out;*/
}

.job-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 1.5rem;
    color: white;
    text-align: center;
}

.job-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.job-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
}

.job-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #495057;
}

.meta-item i {
    font-size: 1.2rem;
    color: #667eea;
}

.meta-item .fa,
.meta-item .uil {
    font-size: 1.2rem;
    color: #667eea;
}

.qualification-section {
    padding: 2rem 1.5rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #667eea;
}

.qualification-content {
    color: #495057;
    line-height: 1.8;
    font-size: 0.95rem;
}

.qualification-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.qualification-content li {
    margin-bottom: 0.5rem;
    position: relative;
}

.qualification-content li::marker {
    color: #667eea;
}

.action-section {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.btn-apply {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-apply:active {
    transform: translateY(0);
}

.info-badge {
    display: inline-block;
    background: #e7f3ff;
    color: #0066cc;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

.location-badge {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================ */
/* TABLET RESPONSIVE (768px - 991px) */
/* ============================================ */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.3rem !important;
    }
}

/* ============================================ */
/* MOBILE RESPONSIVE (max-width: 767px) */
/* ============================================ */
@media (max-width: 767px) {
    /* Layout fixes */
    body {
        padding: 0 !important;
        margin: 0 !important;
    }

    .wrapper {
        overflow-x: hidden !important;
    }

    /* Mobile navbar fixes */
    .mobile-logo {
        display: inline !important;
        height: 35px !important;
    }

    .desktop-logo {
        display: none !important;
    }

    .navbar .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .navbar-brand {
        width: auto !important;
        flex-shrink: 0 !important;
        margin-right: 5px !important;
    }

    .navbar-other {
        width: auto !important;
        margin-left: auto !important;
    }

    .navbar-nav {
        gap: 5px !important;
    }

    .nav-link {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.85rem !important;
    }

    .nav-link i {
        display: none !important;
    }

    .btn-primary {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
    }

    .btn-primary i {
        display: none !important;
    }

    /* Hero section mobile */
    .hero-section {
        min-height: 100vh !important;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        padding: 0 15px !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        padding: 0 15px !important;
    }

    .hero-btn {
        font-size: 0.85rem !important;
        padding: 0.5rem 1.2rem !important;
        white-space: nowrap !important;
    }

    .decorative-icon {
        display: none !important;
    }

    .hero-carousel-img {
        object-position: center !important;
    }

    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Ensure job card icons show on mobile */
    .job-card .icon {
        display: flex !important;
        flex-shrink: 0 !important;
    }

    .job-card .icon i,
    .job-card .fa-solid,
    .job-card .fa,
    .job-card .uil {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: inherit !important;
    }

    .job-card .btn-circle i {
        display: inline-block !important;
    }

    /* Make job card icon slightly smaller on mobile for better fit */
    .job-card .btn-circle.btn-lg {
        width: 50px !important;
        height: 50px !important;
    }

    .job-card .btn-circle.btn-lg i {
        font-size: 1.2rem !important;
    }

    /* Job detail mobile responsive */
    .job-header {
        padding: 1.5rem 1rem;
    }

    .job-title {
        font-size: 1.4rem;
    }

    .job-subtitle {
        font-size: 1rem;
    }

    .job-meta {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .meta-item {
        justify-content: center;
    }

    .qualification-section {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .btn-apply {
        width: 100%;
        padding: 0.875rem 2rem;
    }

    /* General mobile responsive */
    .display-1 {
        font-size: 2.5rem !important;
    }

    .display-3 {
        font-size: 2rem !important;
    }

    .display-4 {
        font-size: 1.75rem !important;
    }

    .lead {
        font-size: 1.1rem !important;
    }

    .job-card .card-body {
        padding: 1.5rem !important;
    }
}

/* ============================================ */
/* ANIMATIONS */
/* ============================================ */

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

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

/* Hover effect for buttons */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}
