/* --- FILE: public/css/custom.css --- */

/* 1. IMPORT FONT INTER (Standar Profesional) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    --font-family: 'Inter', sans-serif;
    --border-color: #e2e8f0; /* Garis sangat halus (Slate-200) */
    --radius-md: 0.75rem;
}

/* 2. BACKGROUND & TEXT */
.fi-body {
    font-family: var(--font-family) !important;
    background-color: #f8fafc !important; /* Latar abu bersih */
    color: #334155 !important; /* Text Slate-700 (Enak di mata) */
}

/* 3. PERBAIKAN TYPOGRAPHY */
.fi-header-heading, h1, h2, h3, .fi-sidebar-item-label {
    font-weight: 500 !important; /* Semi-bold (Jangan terlalu tebal) */
    letter-spacing: -0.015em;
}

/* 4. SIDEBAR & TOPBAR (Clean & Floating Look) */
.fi-sidebar, .fi-topbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

/* Menghilangkan garis sidebar agar terlihat menyatu (Opsional) */
.fi-sidebar { border-right: none !important; }

/* 5. KARTU, WIDGET & TABLE (Modern Thin Lines) */
.fi-card, .fi-ta-ctn, .filament-kanban-record {
    background: white !important;
    border: 1px solid var(--border-color) !important; /* Garis Tipis */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; /* Shadow Tipis */
    border-radius: var(--radius-md) !important;
}

/* Efek Hover: Hijau Tipis & Naik Sedikit */
.fi-card:hover, .filament-kanban-record:hover {
    border-color: #10b981 !important; /* Hijau Emerald */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s ease-in-out;
}

/* 6. SCROLLBAR BARU (Horizontal Friendly) */

/* Container Utama Kanban */
.filament-kanban-board {
    padding-bottom: 1rem !important; /* Memberi ruang untuk scrollbar bawah */
}

/* Ukuran Scrollbar */
::-webkit-scrollbar {
    width: 10px;    /* Scroll Vertikal (Kanan) */
    height: 14px;   /* Scroll Horizontal (Bawah) -> DITEBALKAN AGAR MUDAH DIGESER */
}

/* Jalur Scrollbar (Track) */
::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
}

/* Pegangan Scrollbar (Thumb) */
::-webkit-scrollbar-thumb {
    background-color: #cbd5e1; /* Warna abu soft */
    border-radius: 8px;        /* Bulat */
    border: 3px solid transparent; /* Padding transparan agar terlihat melayang */
    background-clip: content-box;
    transition: background-color 0.2s;
}

/* Saat Mouse Menyentuh Scrollbar (Hover) */
::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8; /* Lebih gelap saat mau digeser */
    border-width: 2px;         /* Jadi lebih tebal sedikit */
    cursor: grab;
}

/* 7. PROJECT BOARD / KANBAN KHUSUS */
/* Kolom Kanban */
.min-w-\[300px\], .w-\[300px\] {
    background-color: #f1f5f9 !important; /* Slate-100 */
    border: 1px solid transparent;
    border-radius: 12px;
}

/* Header Kolom */
.kanban-column-header {
    margin-bottom: 12px;
    font-weight: 600;
}

/* --- FIX GAMBAR DI DALAM EDITOR TIKET --- */
.fi-fo-rich-editor-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid #e2e8f0;
}

/* ============================================================
   SAAS MODERNIZATION — LOGIN / AUTH / DASHBOARD / MICRO-UX
   Inspired by ClickUp, Linear, Notion
   ============================================================ */

/* ---------- LOGIN PAGE styles now live in resources/views/filament/pages/auth/login.blade.php (ClickUp-style) ---------- */

/* ---------- DASHBOARD SAAS MODERN ---------- */
.fi-dashboard-page {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Welcome hero card on dashboard */
.saas-welcome-hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.3);
}

.saas-welcome-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.saas-welcome-hero h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.saas-welcome-hero p {
    opacity: 0.92;
    font-size: 1rem;
    max-width: 600px;
    position: relative;
}

.saas-welcome-hero .hero-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;
}

.saas-welcome-hero .hero-btn {
    background: white;
    color: #059669;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.saas-welcome-hero .hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.saas-welcome-hero .hero-btn.ghost {
    background: rgba(255,255,255,0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Stats cards - more premium */
.fi-wi-stats-overview-stat {
    border-radius: 16px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    transition: all 0.25s ease !important;
    position: relative;
    overflow: hidden;
}

.fi-wi-stats-overview-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    opacity: 0;
    transition: opacity 0.25s;
}

.fi-wi-stats-overview-stat:hover::before { opacity: 1; }

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-3px) !important;
    border-color: #10b981 !important;
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.15) !important;
}

/* Sidebar nav active item */
.fi-sidebar-item-active .fi-sidebar-item-button {
    background: linear-gradient(90deg, rgba(16,185,129,0.1) 0%, transparent 100%) !important;
    border-left: 3px solid #10b981 !important;
    border-radius: 0 8px 8px 0 !important;
}

/* Nice button hover glow */
.fi-btn-color-primary:not(:disabled):hover {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-1px);
}

/* Badges - make counters pop */
.fi-badge {
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    border-radius: 999px !important;
}

/* Tables - cleaner vibe */
.fi-ta {
    border-radius: 16px !important;
    overflow: hidden;
}

.fi-ta-header-cell {
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b !important;
    background: #f8fafc;
}

.fi-ta-row:hover {
    background: #f0fdf4 !important;
}

/* Assigned-to-me badge in sidebar */
.sidebar-me-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* Kanban empty state friendlier */
.kanban-empty-col {
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 2rem 1rem;
    text-align: center;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: #fafbfc;
}

/* Quick filter chips */
.quick-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    background: white;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    color: #475569;
}

.quick-filter-chip:hover {
    border-color: #10b981;
    color: #059669;
    transform: translateY(-1px);
}

.quick-filter-chip.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* --------- DARK MODE support refinements --------- */
/* Login page keeps the gradient panel in dark mode; card goes dark */
.dark .fi-simple-layout {
    background: #0f172a !important;
}

.dark .fi-simple-main-ctn {
    background: #0f172a !important;
}

.dark .fi-simple-main {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.4) !important;
}

.dark .fi-simple-header-heading {
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.dark .fi-simple-header-subheading {
    color: #94a3b8 !important;
}

.dark .fi-simple-main .fi-input-wrp,
.dark .fi-simple-main .fi-fo-text-input input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

.dark .google-login-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.dark .fi-sidebar,
.dark .fi-topbar {
    background-color: rgba(15, 23, 42, 0.9) !important;
}

.dark .saas-welcome-hero {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
}

/* Activity feed widget styling */
.activity-feed-item {
    padding: 0.8rem 1rem;
    border-left: 3px solid #e2e8f0;
    background: white;
    border-radius: 0 10px 10px 0;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.activity-feed-item:hover {
    border-left-color: #10b981;
    background: #f0fdf4;
    transform: translateX(2px);
}

.activity-feed-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 0.75rem;
}

/* Smooth page transitions */
.fi-main {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

