/* İMARX SANTIYE STYLE - V15.0 (ULTIMATE EDITION) */
/* Mevcut tasarımlar (Landing, Login, Kartlar) aynen korundu. */

:root { --primary: #2563eb; --bg: #f8fafc; --card: #ffffff; --text: #1e293b; --ok: #10b981; --err: #ef4444; --warn: #f59e0b; --border: #e2e8f0; }
body { margin:0; font-family:'Inter',sans-serif; background:var(--bg); color:var(--text); padding-bottom:100px; -webkit-tap-highlight-color: transparent; }

/* --- LANDING PAGE (VİTRİN - KORUNDU) --- */
#landing-page { background: #fff; min-height: 100vh; position: relative; z-index: 200; }
.lp-head { display:flex; justify-content:space-between; align-items:center; padding:20px; max-width:1200px; margin:0 auto; }
.logo { font-size:1.5rem; font-weight:900; color:#0f172a; letter-spacing:-1px; }
.logo span { color:var(--primary); }
.hero { text-align:center; padding:80px 20px; background:linear-gradient(180deg, #f8fafc 0%, #fff 100%); }
.hero h1 { font-size:3rem; line-height:1.1; margin-bottom:20px; color:#0f172a; letter-spacing:-1px; }
.hero p { font-size:1.1rem; color:#64748b; max-width:600px; margin:0 auto 40px auto; }
.btn-hero { background:var(--primary); color:white; padding:15px 40px; border-radius:50px; font-size:1.1rem; font-weight:bold; border:none; cursor:pointer; box-shadow:0 10px 25px rgba(37,99,235,0.3); transition:0.3s; }
.btn-hero:hover { transform:scale(1.05); }
.btn-outline { background:transparent; border:2px solid #cbd5e1; color:#64748b; padding:10px 25px; border-radius:50px; font-weight:bold; cursor:pointer; margin-left:10px; transition:0.3s; }
.btn-outline:hover { border-color:var(--primary); color:var(--primary); }
.features { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:30px; padding:50px 20px; max-width:1200px; margin:0 auto; }
.feat-card { background:#fff; padding:30px; border-radius:20px; border:1px solid #e2e8f0; text-align:left; transition:0.3s; }
.feat-card:hover { transform:translateY(-5px); box-shadow:0 10px 30px rgba(0,0,0,0.05); }
.icon-box { width:50px; height:50px; background:#eff6ff; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1.5rem; color:var(--primary); margin-bottom:20px; }

/* --- LOGIN MODAL (KORUNDU) --- */
.login-overlay { position:fixed; inset:0; background:rgba(15,23,42,0.9); z-index:9999; display:none; justify-content:center; align-items:center; padding:20px; backdrop-filter:blur(5px); }
.login-overlay.active { display:flex; }
.l-card { background:#fff; padding:30px; border-radius:20px; width:100%; max-width:380px; text-align:center; box-shadow:0 20px 50px rgba(0,0,0,0.2); position:relative; }
.close-modal { position:absolute; top:15px; right:15px; font-size:1.5rem; cursor:pointer; color:#94a3b8; }

/* --- APP STYLES (KORUNDU) --- */
#app-container { display:none; }
.header { background:var(--card); padding:15px; display:flex; flex-direction:column; gap:10px; position:sticky; top:0; z-index:100; box-shadow:0 1px 5px rgba(0,0,0,0.05); }
.header-top { display:flex; justify-content:space-between; align-items:center; }
.progress-container { width:100%; height:8px; background:#e2e8f0; border-radius:4px; overflow:hidden; position:relative; }
.progress-bar { height:100%; background:linear-gradient(90deg, #3b82f6, #6366f1); width:0%; transition:1s; }
.progress-label { font-size:0.7rem; color:#64748b; margin-top:3px; display:flex; justify-content:space-between; }
.main { max-width:800px; margin:0 auto; padding:15px; }
.view-section { display:none; animation:fadeIn 0.2s; } .view-section.active { display:block; } @keyframes fadeIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.card { background:var(--card); padding:20px; border-radius:16px; border:1px solid #f1f5f9; margin-bottom:15px; box-shadow:0 4px 6px -1px rgba(0,0,0,0.02); }
.btn { padding:14px; border-radius:12px; border:none; font-weight:600; cursor:pointer; width:100%; display:flex; justify-content:center; align-items:center; gap:8px; transition:0.2s; }
.btn-primary { background:var(--primary); color:white; } .btn-primary:active { transform:scale(0.98); }
.btn-light { background:#f1f5f9; color:#64748b; }
.task-widget { background:linear-gradient(135deg, #3b82f6, #2563eb); color:white; padding:15px; border-radius:12px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; margin-bottom:15px; box-shadow:0 8px 20px rgba(37, 99, 235, 0.25); }
.task-count { background:white; color:var(--primary); width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:bold; font-size:0.8rem; }
.agenda-item { background:#fff7ed; border-left:4px solid var(--warn); padding:10px; margin-bottom:5px; border-radius:8px; font-size:0.9rem; display:flex; justify-content:space-between; }
.request-item { background:#eff6ff; border-left:4px solid var(--primary); padding:10px; margin-bottom:5px; border-radius:8px; font-size:0.9rem; display:flex; justify-content:space-between; cursor:pointer; }
.request-item:hover { background:#dbeafe; }
.bottom-nav { position:fixed; bottom:0; left:0; right:0; background:var(--card); border-top:1px solid #e2e8f0; display:flex; justify-content:space-around; padding:12px; z-index:900; }
.nav-item { display:flex; flex-direction:column; align-items:center; font-size:0.7rem; color:#94a3b8; cursor:pointer; } .nav-item.active { color:var(--primary); } .nav-item i { font-size:1.5rem; margin-bottom:4px; }
.overlay-page { position:fixed; top:0; right:-100%; width:100%; height:100%; background:var(--bg); z-index:3000; transition:0.3s; overflow-y:auto; box-shadow:-5px 0 20px rgba(0,0,0,0.1); }
.overlay-page.open { right:0; }
.overlay-header { padding:20px; background:white; position:sticky; top:0; display:flex; align-items:center; gap:10px; border-bottom:1px solid #eee; }
input, select, textarea { width:100%; padding:14px; border:1px solid #cbd5e1; border-radius:12px; box-sizing:border-box; margin-bottom:12px; font-family:inherit; }
.mic-btn { position:absolute; right:10px; top:10px; color:#64748b; cursor:pointer; background:none; border:none; font-size:1.2rem; }
.input-wrapper { position:relative; }
.mic-listening { color:var(--err); animation:pulse 1s infinite; }
@keyframes pulse { 0% { transform:scale(1); } 50% { transform:scale(1.2); } 100% { transform:scale(1); } }
.modal { position:fixed; inset:0; background:rgba(0,0,0,0.8); z-index:2000; display:none; justify-content:center; align-items:center; padding:20px; }
.modal-content { background:white; padding:20px; border-radius:15px; width:100%; max-width:400px; }
.todo-row { display:flex; align-items:center; padding:12px; border-bottom:1px solid #f1f5f9; }
.todo-row input[type="checkbox"] { width:20px; height:20px; margin:0 10px 0 0; accent-color:var(--primary); }
.todo-row.done span { text-decoration:line-through; color:#94a3b8; }
.role-depocu .hide-depocu { display:none !important; }
.sentinel { height: 20px; margin-bottom: 50px; }
.loading-spinner { text-align:center; padding:10px; color:#94a3b8; font-size:0.8rem; display:none; }
.loading-spinner.show { display:block; }
.info-box { font-size:0.8rem; background:#e0f2fe; color:#0369a1; padding:10px; border-radius:5px; margin-bottom:15px; display:flex; gap:10px; align-items:start; }
.demo-banner { background:#f59e0b; color:black; text-align:center; padding:5px; font-size:0.8rem; font-weight:bold; position:sticky; top:0; z-index:1000; display:none; }

/* --- V15.0 İLE EKLENEN YENİ STİLLER (MILESTONES & WIDGETS) --- */

/* İş Programı (Milestones) Listesi */
.milestone-item {
    transition: background 0.2s;
}
.milestone-item.completed strong {
    text-decoration: line-through;
    color: #94a3b8;
}
.milestone-item:last-child {
    border-bottom: none !important;
}

/* Küçük İlerleme Çubuğu (Milestone için) */
.prog-container-sm {
    background: #f1f5f9; /* Daha soft bir arka plan */
}
.prog-bar-sm {
    transition: width 0.5s ease-out;
}

/* Taşeron Listesi Yatay Scroll */
#supplier-list-widget::-webkit-scrollbar {
    height: 4px;
}
#supplier-list-widget::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* SweetAlert içindeki input düzenlemeleri */
.swal2-popup {
    border-radius: 20px !important;
    padding: 20px !important;
}
.swal2-title {
    font-size: 1.2rem !important;
}
.swal2-input, .swal2-select {
    margin: 10px auto !important;
    font-size: 0.95rem !important;
}
/* --- LİSTE YÜKSEKLİK SINIRLAMASI (V15.3) --- */

/* İş Programı, Talepler, Finans ve Stok listelerine sabit boy veriyoruz */
#milestone-list, 
#request-list, 
#list-costs, 
#list-inventory,
#list-daily_logs {
    max-height: 240px;  /* Yaklaşık 4-5 kayıt sığar, fazlası taşmaz */
    overflow-y: auto;   /* Fazlası için yanda kaydırma çubuğu çıkar */
    padding-right: 5px; /* Kaydırma çubuğu yazıya yapışmasın */
    
    /* Mobilde kaydırma hissini yumuşatır */
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: thin; /* Firefox için ince çubuk */
}

/* Kaydırma Çubuğunu (Scrollbar) Güzelleştirme */
#milestone-list::-webkit-scrollbar, 
#request-list::-webkit-scrollbar,
#list-costs::-webkit-scrollbar,
#list-inventory::-webkit-scrollbar,
#list-daily_logs::-webkit-scrollbar {
    width: 6px; /* Çubuk genişliği */
}

#milestone-list::-webkit-scrollbar-track, 
#request-list::-webkit-scrollbar-track,
#list-costs::-webkit-scrollbar-track,
#list-inventory::-webkit-scrollbar-track,
#list-daily_logs::-webkit-scrollbar-track {
    background: #f1f5f9; /* Çubuk yolu rengi */
}

#milestone-list::-webkit-scrollbar-thumb, 
#request-list::-webkit-scrollbar-thumb,
#list-costs::-webkit-scrollbar-thumb,
#list-inventory::-webkit-scrollbar-thumb,
#list-daily_logs::-webkit-scrollbar-thumb {
    background-color: #cbd5e1; /* Çubuğun kendisi */
    border-radius: 10px; /* Yuvarlak köşeler */
    border: 2px solid #f1f5f9; /* Kenar boşluğu */
}