/* DUR TAKSİ 🚕 — Modern SaaS Design System & Motion Styles */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Brand Color Tokens */
    --brand-primary: #f59e0b;
    --brand-primary-hover: #d97706;
    --brand-dark: #0f172a;
    --brand-surface: #1e293b;
    --brand-emerald: #10b981;
    --brand-red: #ef4444;

    /* Animation & Easing Tokens (Strictly adhering to Animation Skill) */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --duration-fast: 150ms;
    --duration-base: 220ms;
    --duration-modal: 280ms;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    background-color: #f8fafc;
    color: #1e293b;
}

/* Micro-interaction: Button Press & Hover Scale */
@media (hover: hover) and (pointer: fine) {
    button, .btn-action, a[class*="btn"] {
        transition: transform var(--duration-fast) var(--ease-out), background-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
    }
    button:hover:not(:disabled), .btn-action:hover:not(:disabled), a[class*="btn"]:hover {
        transform: translateY(-1px);
    }
}

button:active:not(:disabled), .btn-action:active:not(:disabled) {
    transform: scale(0.97);
}

/* Vehicle screen large touch buttons */
.btn-vehicle-status {
    min-height: 84px;
    font-size: 1.35rem;
    font-weight: 800;
    border-radius: 1.25rem;
    transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) ease;
}

.btn-vehicle-status:active {
    transform: scale(0.96);
}

/* Pulse effects */
@keyframes pulse-emerald {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-amber {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.animate-pulse-emerald {
    animation: pulse-emerald 2s infinite;
}

.animate-pulse-amber {
    animation: pulse-amber 2s infinite;
}

/* Modal Animation */
.modal-backdrop {
    transition: opacity var(--duration-modal) var(--ease-out);
}

.modal-box {
    transition: transform var(--duration-modal) var(--ease-out), opacity var(--duration-modal) var(--ease-out);
    transform: scale(0.96);
    opacity: 0;
}

.modal-active .modal-box {
    transform: scale(1);
    opacity: 1;
}

/* Custom Toast System */
.toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.2rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
    transform: translateX(110%);
    opacity: 0;
}

.toast-item.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-item.toast-hide {
    transform: translateX(110%);
    opacity: 0;
}

/* Leaflet Map Custom Marker & Tooltip Enhancements */
.custom-point-pin {
    background: transparent;
    border: none;
}

.custom-taxi-pin {
    background: transparent;
    border: none;
}

.leaflet-popup-content-wrapper {
    border-radius: 1rem !important;
    padding: 0.25rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.leaflet-popup-tip {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

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

/* Modern Card Glows & Details */
.card-premium {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1.25rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--duration-base) ease, border-color var(--duration-base) ease;
}

.card-premium:hover {
    border-color: #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .no-print { display: none !important; }
    .print-only { display: block !important; }
}
