/* ============================================================================
   JobDeva Recruiter Portal — Custom CSS
   Blue/White theme matching the Next.js application
   ============================================================================ */

/* ─── CSS Custom Properties ───────────────────────────────────────────────── */
:root {
    --jd-primary: #2563eb;
    --jd-primary-light: #3b82f6;
    --jd-primary-dark: #1d4ed8;
    --jd-primary-darker: #1e40af;
    --jd-accent: #60a5fa;
    --jd-bg: #eff6ff;
    --jd-bg-dark: #1e3a5f;

    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    --gradient-hero: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 40%, #2563eb 70%, #3b82f6 100%);
    --gradient-animated: linear-gradient(270deg, #1e40af, #2563eb, #3b82f6, #2563eb, #1e40af);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 4px 14px rgba(37, 99, 235, 0.25);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    --pipeline-sourced: #6b7280;
    --pipeline-screening: #f59e0b;
    --pipeline-shortlisted: #3b82f6;
    --pipeline-interview: #8b5cf6;
    --pipeline-offer: #10b981;
    --pipeline-hired: #059669;
    --pipeline-rejected: #ef4444;
}

/* ─── Base / Reset ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#mainContent {
    flex: 1;
}

/* Safe area for mobile bottom nav */
.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ─── Gradient Text ────────────────────────────────────────────────────────── */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-animated {
    background: var(--gradient-animated);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 8s ease infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ─── Glass Card Effect ────────────────────────────────────────────────────── */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.glass-card-dark {
    background: rgba(30, 58, 95, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* ─── Hero Gradient ────────────────────────────────────────────────────────── */
.hero-gradient {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #f9fafb, transparent);
}

/* ─── Animated Gradient Background ─────────────────────────────────────────── */
.animated-gradient-bg {
    background: var(--gradient-animated);
    background-size: 300% 300%;
    animation: gradient 8s ease infinite;
}

/* ─── Pipeline Stage Colors ────────────────────────────────────────────────── */
.pipeline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.pipeline-badge-sourced {
    background-color: #f3f4f6;
    color: #6b7280;
}

.pipeline-badge-screening {
    background-color: #fef3c7;
    color: #92400e;
}

.pipeline-badge-shortlisted {
    background-color: #dbeafe;
    color: #1e40af;
}

.pipeline-badge-interview {
    background-color: #ede9fe;
    color: #5b21b6;
}

.pipeline-badge-offer {
    background-color: #d1fae5;
    color: #065f46;
}

.pipeline-badge-hired {
    background-color: #a7f3d0;
    color: #065f46;
    font-weight: 700;
}

.pipeline-badge-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Pipeline lane styling */
.pipeline-lane {
    min-height: 200px;
    border-radius: var(--radius-lg);
    padding: 1rem;
    transition: background-color var(--transition-fast);
}

.pipeline-lane-drag-over {
    background-color: #eff6ff;
    border: 2px dashed #3b82f6;
}

/* ─── Badge Styles ─────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-hold {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.badge-shortlisted {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #60a5fa;
}

.badge-selected {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.badge-free {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.badge-starter {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #60a5fa;
}

.badge-professional {
    background-color: #ede9fe;
    color: #5b21b6;
    border: 1px solid #8b5cf6;
}

.badge-premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    border: 1px solid #d97706;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* ─── Bottom Navigation ────────────────────────────────────────────────────── */
.bottom-nav-item.active {
    color: var(--jd-primary);
}

.bottom-nav-item.active::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: var(--jd-primary);
    border-radius: 50%;
    margin-top: 2px;
}

/* ─── Toggle Switch ────────────────────────────────────────────────────────── */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    border-radius: 9999px;
    transition: all var(--transition-base);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all var(--transition-base);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--jd-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── QR Code Styles ───────────────────────────────────────────────────────── */
.qr-code-container {
    display: inline-flex;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid #e5e7eb;
}

.qr-code-container img,
.qr-code-container svg {
    width: 150px;
    height: 150px;
}

/* ─── Video Upload Drag-Drop ───────────────────────────────────────────────── */
.video-upload-zone {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    background: #fafafa;
}

.video-upload-zone:hover {
    border-color: var(--jd-primary);
    background: #eff6ff;
}

.video-upload-zone.drag-over {
    border-color: var(--jd-primary);
    background: #dbeafe;
    border-style: solid;
    transform: scale(1.01);
}

.video-upload-zone.has-video {
    border-color: #10b981;
    background: #f0fdf4;
    border-style: solid;
}

.video-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ─── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.3s ease-out forwards;
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.2s ease-out forwards;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Staggered animation delays */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text-sm {
    height: 0.75rem;
    width: 60%;
    margin-bottom: 0.5rem;
}

.skeleton-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* ─── Form Styles ──────────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #1f2937;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--jd-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-input:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
    display: block;
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* ─── Button Styles ────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    text-decoration: none;
    line-height: 1.5;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background-color: var(--jd-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--jd-primary-dark);
    box-shadow: var(--shadow-blue);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #eff6ff;
    color: var(--jd-primary);
    border: 1px solid #dbeafe;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #dbeafe;
}

.btn-outline {
    background-color: transparent;
    color: var(--jd-primary);
    border: 1px solid var(--jd-primary);
}

.btn-outline:hover:not(:disabled) {
    background-color: #eff6ff;
}

.btn-ghost {
    background-color: transparent;
    color: #6b7280;
}

.btn-ghost:hover:not(:disabled) {
    background-color: #f3f4f6;
    color: #1f2937;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
}

.btn-success {
    background-color: #10b981;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: #059669;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-icon {
    padding: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
}

/* ─── Card Styles ──────────────────────────────────────────────────────────── */
.card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

/* ─── Candidate Card ───────────────────────────────────────────────────────── */
.candidate-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid #e5e7eb;
    padding: 1.25rem;
    transition: all var(--transition-base);
    cursor: pointer;
}

.candidate-card:hover {
    border-color: var(--jd-primary-light);
    box-shadow: var(--shadow-blue);
    transform: translateY(-2px);
}

.candidate-card .match-score {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.match-score-high {
    background: linear-gradient(135deg, #10b981, #059669);
}

.match-score-medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.match-score-low {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

/* ─── Toast Notifications ──────────────────────────────────────────────────── */
.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--jd-primary);
    animation: slideDown 0.3s ease-out, fadeIn 0.3s ease-out;
    max-width: 400px;
    font-size: 0.875rem;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6;
}

.toast-close {
    margin-left: auto;
    padding: 0.25rem;
    color: #9ca3af;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: #4b5563;
}

/* ─── Modal ────────────────────────────────────────────────────────────────── */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 70;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.2s ease-out;
    width: 90%;
    max-width: 500px;
}

.modal-lg {
    max-width: 700px;
}

.modal-xl {
    max-width: 900px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

/* ─── Tabs ─────────────────────────────────────────────────────────────────── */
.tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.tab:hover {
    color: var(--jd-primary);
}

.tab.active {
    color: var(--jd-primary);
    border-bottom-color: var(--jd-primary);
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

/* ─── Stat Cards ───────────────────────────────────────────────────────────── */
.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    transition: all var(--transition-base);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.stat-card .stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: #059669;
}

.stat-change.negative {
    color: #dc2626;
}

/* ─── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 39;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }
    .sidebar-overlay {
        display: none;
    }
}

/* ─── Search Bar ───────────────────────────────────────────────────────────── */
.search-bar {
    position: relative;
}

.search-bar .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.search-bar input {
    padding-left: 2.5rem;
}

.search-bar .search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.search-bar .search-clear:hover {
    color: #4b5563;
    background: #f3f4f6;
}

/* ─── Skill Tag ────────────────────────────────────────────────────────────── */
.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: #dbeafe;
}

.skill-tag-sm {
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
}

/* ─── Plan Card (Billing) ──────────────────────────────────────────────────── */
.plan-card {
    background: white;
    border-radius: var(--radius-2xl);
    border: 2px solid #e5e7eb;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.plan-card:hover {
    border-color: var(--jd-primary-light);
    box-shadow: var(--shadow-lg);
}

.plan-card.current {
    border-color: var(--jd-primary);
    box-shadow: var(--shadow-blue);
}

.plan-card.popular {
    border-color: var(--jd-primary);
}

.plan-card.popular::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Empty State ──────────────────────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: #eff6ff;
    color: var(--jd-primary);
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.875rem;
    color: #6b7280;
    max-width: 360px;
    margin-bottom: 1.5rem;
}

/* ─── Responsive Utilities ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }

    .modal {
        width: 95%;
        max-height: 85vh;
        border-radius: var(--radius-lg);
    }

    .hero-gradient {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (min-width: 641px) {
    .show-mobile-only {
        display: none !important;
    }
}

/* ─── Print Styles ─────────────────────────────────────────────────────────── */
@media print {
    nav, .bottom-nav, footer, .btn, .modal, #toastContainer, #modalBackdrop {
        display: none !important;
    }

    body {
        background: white;
    }

    .card, .glass-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
        break-inside: avoid;
    }
}

/* ─── Selection Color ──────────────────────────────────────────────────────── */
::selection {
    background: #bfdbfe;
    color: #1e3a5f;
}

/* ─── Focus Ring ───────────────────────────────────────────────────────────── */
*:focus-visible {
    outline: 2px solid var(--jd-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ─── Drag and Drop ────────────────────────────────────────────────────────── */
.draggable {
    cursor: grab;
}

.draggable:active {
    cursor: grabbing;
}

.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.drop-zone-active {
    border: 2px dashed var(--jd-primary) !important;
    background: #eff6ff !important;
}

/* ─── Pricing Table ────────────────────────────────────────────────────────── */
.pricing-toggle {
    position: relative;
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 9999px;
    padding: 0.25rem;
}

.pricing-toggle-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    background: transparent;
}

.pricing-toggle-btn.active {
    background: white;
    color: var(--jd-primary);
    box-shadow: var(--shadow-sm);
}

/* ─── Collection Color Dots ────────────────────────────────────────────────── */
.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ─── Notification dot ─────────────────────────────────────────────────────── */
.notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid white;
}

/* ─── Custom Scrollbar ─────────────────────────────────────────────────────── */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

/* ─── Animated Slide Up ────────────────────────────────────────────────────── */
@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
.animate-slide-up {
    animation: slideUpFade 0.3s ease-out;
}

/* ─── Animated Float ───────────────────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ─── Glass Effect (input variant) ─────────────────────────────────────────── */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ─── Star Fill Override for Lucide ────────────────────────────────────────── */
.fill-amber-400 {
    fill: #fbbf24;
}
