/* JobsTanzania Custom Styles */

/* PWA safe area for install banner */
.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* PWA standalone mode adjustments */
@media all and (display-mode: standalone) {
    /* Extra top padding for status bar in standalone mode */
    header.sticky {
        padding-top: env(safe-area-inset-top, 0);
    }
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Active nav indicator */
.active {
    color: #4f46e5;
    font-weight: 600;
}

/* Flash message auto-dismiss animation */
.flash-message {
    animation: flashFadeIn 0.3s ease-out;
}

@keyframes flashFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Job description content styling */
.job-description h2,
.job-description h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.job-description p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #374151;
}

.job-description ul,
.job-description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.job-description ul {
    list-style-type: disc;
}

.job-description ol {
    list-style-type: decimal;
}

.job-description li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
    color: #374151;
}

.job-description a {
    color: #4f46e5;
    text-decoration: underline;
}

.job-description strong {
    font-weight: 600;
    color: #111827;
}

/* Blog content styling */
.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    margin-bottom: 1.25rem;
    line-height: 1.85;
    color: #374151;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-content ul {
    list-style-type: disc;
}

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

.blog-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
    color: #374151;
}

.blog-content a {
    color: #4f46e5;
    text-decoration: underline;
}

.blog-content strong {
    font-weight: 600;
}

.blog-content blockquote {
    border-left: 4px solid #4f46e5;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

/* Skeleton loader animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Custom scrollbar for sidebar */
aside::-webkit-scrollbar {
    width: 4px;
}

aside::-webkit-scrollbar-track {
    background: transparent;
}

aside::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

/* Step indicator for multi-step forms */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step-indicator .step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-indicator .step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid #d1d5db;
    color: #6b7280;
    background: white;
}

.step-indicator .step.active .step-number {
    border-color: #4f46e5;
    background: #4f46e5;
    color: white;
}

.step-indicator .step.completed .step-number {
    border-color: #4f46e5;
    background: #d1fae5;
    color: #4f46e5;
}

.step-indicator .step-line {
    width: 3rem;
    height: 2px;
    background: #d1d5db;
}

.step-indicator .step.completed + .step-line,
.step.active ~ .step-line {
    background: #4f46e5;
}

/* Responsive table wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Print styles */
@media print {
    header, footer, nav, aside, .no-print {
        display: none !important;
    }
    main {
        padding: 0 !important;
    }
}
