/* ============================================================
   SERVİSİM BENİM — Global CSS
   Tailwind CDN üzeri özel stiller
   ============================================================ */

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

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Sidebar transition */
#sidebar {
    transition: transform 0.25s ease, width 0.25s ease;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Tablo satır hover */
.table-hover tbody tr {
    transition: background 0.15s ease;
}
.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Form input focus */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Kart gölgesi */
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Badge animasyon */
.badge-pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* İmza canvas */
#signature-canvas {
    touch-action: none;
    cursor: crosshair;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #fafafa;
}
#signature-canvas.active {
    border-color: #3b82f6;
    border-style: solid;
}

/* PDF görünüm */
.receipt-preview {
    font-family: 'Inter', sans-serif;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    padding: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

/* Toast bildirimi */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}
.toast.success { background: #10b981; }
.toast.error   { background: #ef4444; }
.toast.info    { background: #3b82f6; }

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

/* Stat kart */
.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.2s ease;
}
.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Durum renkleri (servis) */
.status-received      { background:#f1f5f9; color:#475569; }
.status-waiting       { background:#fef9c3; color:#854d0e; }
.status-diagnosed     { background:#dbeafe; color:#1e40af; }
.status-approval      { background:#ede9fe; color:#5b21b6; }
.status-parts_waiting { background:#ffedd5; color:#9a3412; }
.status-completed     { background:#dcfce7; color:#166534; }
.status-delivered     { background:#ccfbf1; color:#115e59; }
.status-cancelled     { background:#fee2e2; color:#991b1b; }

/* Mobil sidebar overlay */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 30;
}
#sidebar-overlay.active { display: block; }

/* Print */
@media print {
    #sidebar, #topbar, .no-print { display: none !important; }
    #main-content { margin: 0 !important; padding: 0 !important; }
}
