/* Frontend Styles for Job Status Pro */

.jsp-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #eef2f3 0%, #8e9eab 100%);
}

.jsp-hero-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 60%);
    opacity: 0.5;
    animation: jspRotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

.jsp-search-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    animation: jspFadeInUp 0.8s ease-out forwards;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.jsp-search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

@keyframes jspFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jsp-fade-in {
    animation: jspFadeIn 0.5s ease-out forwards;
}

@keyframes jspFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.jsp-btn-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #0043a8 100%);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.jsp-btn-gradient:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #003688 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
}

.jsp-search-input-group {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.jsp-search-input-group:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.15);
    transform: scale(1.02);
}

.jsp-search-container .input-group-text {
    background-color: #fff;
    color: #6c757d;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

@media (prefers-color-scheme: dark) {
    .jsp-hero {
        background: linear-gradient(135deg, #141e30 0%, #243b55 100%);
    }
    .jsp-hero-bg {
        background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 60%);
    }
    .jsp-search-card {
        background-color: rgba(33, 37, 41, 0.95);
        color: #f8f9fa;
        border: 1px solid #343a40 !important;
    }
    
    .jsp-search-card .text-muted {
        color: #adb5bd !important;
    }
    
    .jsp-search-input-group {
        border-color: #495057;
        background-color: #343a40;
    }
    
    .jsp-search-input-group .input-group-text,
    .jsp-search-input-group .form-control {
        background-color: #343a40 !important;
        color: #f8f9fa !important;
    }
    
    .jsp-search-input-group .form-control::placeholder {
        color: #6c757d;
    }

    .jsp-history-btn {
        background-color: #343a40 !important;
        color: #f8f9fa !important;
        border-color: #495057 !important;
    }
    
    .jsp-history-btn:hover {
        background-color: #495057 !important;
    }
}


#jsp-result-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

#jsp-result-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#jsp-result-photo i {
    font-size: 3rem;
    color: #adb5bd;
}

.text-pre-wrap {
    white-space: pre-wrap;
}

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

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

.badge.bg-danger {
    background-color: #dc3545 !important;
}

/* History buttons */
.jsp-history-btn {
    cursor: pointer;
    transition: all 0.2s;
}
.jsp-history-btn:hover {
    background-color: #e9ecef;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    .jsp-print-area, .jsp-print-area * {
        visibility: visible;
    }
    .jsp-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .jsp-no-print, .jsp-no-print * {
        display: none !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    .bg-light {
        background-color: #fff !important;
        border: 1px solid #ddd;
    }
}

/* Watermark styles */
.jsp-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

#jsp-result-container .card {
    position: relative;
    z-index: 1; /* Keep cards above watermark */
    background: rgba(255,255,255,0.98);
}

[data-bs-theme="dark"] #jsp-result-container .card {
    background: rgba(33,37,41,0.98);
}

/* Premium Glassmorphism UI */
.bg-premium-gradient {
    background: linear-gradient(135deg, #0f4c81 0%, #1e88e5 100%);
    color: #fff;
}

.jsp-premium-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.jsp-premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

[data-bs-theme="dark"] .jsp-premium-card {
    background: rgba(33, 37, 41, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.jsp-profile-header {
    position: relative;
    padding-top: 100px;
}
.jsp-profile-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    z-index: 0;
}
.jsp-profile-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    padding: 0 2rem 1.5rem;
}

#jsp-result-photo.premium-avatar {
    width: 140px;
    height: 140px;
    border: 6px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-right: 1.5rem;
    background-color: #fff;
}
[data-bs-theme="dark"] #jsp-result-photo.premium-avatar {
    border-color: #212529;
}

.jsp-stat-card {
    background: rgba(255,255,255,0.6);
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}
.jsp-stat-card:hover {
    background: rgba(255,255,255,0.9);
    transform: scale(1.02);
}
.jsp-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    background: linear-gradient(135deg, #0f4c81 0%, #1e88e5 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(15, 76, 129, 0.3);
}

[data-bs-theme="dark"] .jsp-stat-card {
    background: rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.05);
}
[data-bs-theme="dark"] .jsp-stat-card:hover {
    background: rgba(0,0,0,0.4);
}

.jsp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.jsp-info-item {
    background: rgba(255,255,255,0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #1e88e5;
}
[data-bs-theme="dark"] .jsp-info-item {
    background: rgba(0,0,0,0.2);
    border-left-color: #0d6efd;
}

/* Horizontal Stepper Premium */
.jsp-stepper-container {
    position: relative;
    padding: 2rem 0;
}
.jsp-stepper-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #e9ecef;
    z-index: 1;
    transform: translateY(-50%);
}
[data-bs-theme="dark"] .jsp-stepper-line {
    background: #343a40;
}
.jsp-stepper-progress {
    position: absolute;
    top: 50%;
    left: 10%;
    height: 4px;
    background: #1e88e5;
    z-index: 2;
    transform: translateY(-50%);
    transition: width 0.5s ease;
}

.jsp-step-item {
    position: relative;
    z-index: 3;
    text-align: center;
}
.jsp-step-circle-premium {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    background: #fff;
    border: 4px solid #e9ecef;
    color: #adb5bd;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
[data-bs-theme="dark"] .jsp-step-circle-premium {
    background: #212529;
    border-color: #343a40;
}
.jsp-step-item.completed .jsp-step-circle-premium {
    background: #198754;
    border-color: #198754;
    color: #fff;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.4);
}
.jsp-step-item.current .jsp-step-circle-premium {
    background: #0f4c81;
    border-color: #1e88e5;
    color: #fff;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
    transform: scale(1.1);
}

.jsp-doc-card-premium {
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}
.jsp-doc-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: #fff;
}
[data-bs-theme="dark"] .jsp-doc-card-premium {
    background: rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.05);
}
[data-bs-theme="dark"] .jsp-doc-card-premium:hover {
    background: rgba(0,0,0,0.4);
}

.jsp-qr-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    text-align: center;
}
[data-bs-theme="dark"] .jsp-qr-card {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    border-color: #495057;
}

.jsp-verified-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(25, 135, 84, 0.2);
}
