/* ============================================
   JASTIP APP - Premium Design System
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- Base ---- */
* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
body { -webkit-tap-highlight-color: transparent; background: #f0f2f5; }

/* ---- Scrollbar Hide ---- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---- Gradient Backgrounds ---- */
.bg-gradient-jastiper {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
}
.bg-gradient-pembeli {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}
.bg-gradient-landing {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 40%, #7c3aed 100%);
}
.bg-gradient-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* ---- Glassmorphism ---- */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- Card Styles ---- */
.card {
    background: white;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.card-flat {
    background: white;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ---- Stat Cards ---- */
.stat-card {
    min-width: 130px;
    padding: 16px;
    border-radius: 16px;
    background: white;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}
@keyframes bounce-subtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }
.animate-slide-right { animation: slideInRight 0.4s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }
.animate-bounce-subtle { animation: bounce-subtle 2s ease-in-out infinite; }

/* Staggered animation delays */
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ---- Badge ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.badge-open { background: #ecfdf5; color: #059669; }
.badge-closed { background: #fef2f2; color: #dc2626; }
.badge-draft { background: #f3f4f6; color: #6b7280; }
.badge-completed { background: #eff6ff; color: #2563eb; }
.badge-paid { background: #fefce8; color: #ca8a04; }

/* ---- Status Timeline ---- */
.timeline-step {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-bottom: 24px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}
.timeline-step:last-child::before { display: none; }
.timeline-step.active::before { background: #4f46e5; }
.timeline-dot {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 12px;
    z-index: 1;
}
.timeline-dot.done { background: #4f46e5; color: white; }
.timeline-dot.current { background: #eef2ff; color: #4f46e5; border: 2px solid #4f46e5; animation: pulse-soft 2s infinite; }
.timeline-dot.pending { background: #f3f4f6; color: #9ca3af; }

/* ---- Buttons ---- */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    width: 100%;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    width: 100%;
    border: none;
    cursor: pointer;
}
.btn-secondary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45); }

.btn-outline {
    background: white;
    color: #4f46e5;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 14px;
    border: 2px solid #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    width: 100%;
    cursor: pointer;
}
.btn-outline:hover { background: #eef2ff; border-color: #4f46e5; }

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    width: 100%;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-whatsapp:hover { transform: translateY(-1px); }

.btn-google {
    background: white;
    color: #374151;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    width: 100%;
    cursor: pointer;
    text-decoration: none;
}
.btn-google:hover { background: #f9fafb; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* ---- Input Fields ---- */
.input-field {
    width: 100%;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}
.input-field:focus {
    border-color: #4f46e5;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.input-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Bottom Nav ---- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 448px;
    background: white;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-around;
    padding: 10px 16px 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    z-index: 50;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    padding: 4px 12px;
}
.nav-item.active { color: #4f46e5; }
.nav-item.active-green { color: #059669; }
.nav-item:hover { color: #4f46e5; }
.nav-item i { font-size: 20px; margin-bottom: 4px; }
.nav-item span { font-size: 10px; font-weight: 700; }
.nav-badge {
    position: absolute;
    top: 0;
    right: 4px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: bounce-subtle 2s infinite;
}

/* ---- Tab Pills ---- */
.tab-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.tab-pills::-webkit-scrollbar { display: none; }
.tab-pill {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
    border: 1.5px solid #e5e7eb;
    background: white;
    color: #6b7280;
    text-decoration: none;
}
.tab-pill.active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
.tab-pill:hover:not(.active) { border-color: #4f46e5; color: #4f46e5; }

/* ---- Misc ---- */
.divider-or {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}
.divider-or::before, .divider-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.divider-or span {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* Avatar */
.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    text-transform: uppercase;
}
.avatar-sm { width: 36px; height: 36px; font-size: 14px; }
.avatar-md { width: 48px; height: 48px; font-size: 18px; }
.avatar-lg { width: 72px; height: 72px; font-size: 28px; }
.avatar-xl { width: 96px; height: 96px; font-size: 36px; }

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    transition: width 0.6s ease;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}
.upload-area:hover {
    border-color: #4f46e5;
    background: #eef2ff;
}
.upload-area.has-file {
    border-color: #10b981;
    background: #ecfdf5;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}
.empty-state i {
    font-size: 56px;
    color: #d1d5db;
    margin-bottom: 16px;
}
.empty-state h4 {
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 8px;
}
.empty-state p {
    font-size: 13px;
    color: #9ca3af;
}
