/* ===========================================
   MODERN OTOBUS TAKIP SISTEMI - CSS
   =========================================== */

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --sidebar-width: 280px;
    --header-height: 70px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    --dark: #f8fafc;
    --light: #1e293b;
    --white: #0f172a;
    --border: #334155;
    --secondary: #94a3b8;
}

body.dark-mode .sidebar,
body.dark-mode .top-header,
body.dark-mode .card,
body.dark-mode .line-card,

body.dark-mode .stop-item,
body.dark-mode .announcement-card,
body.dark-mode .settings-card,
body.dark-mode .faq-item,
body.dark-mode .feature-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .nav-item:hover {
    background: #334155;
}

body.dark-mode input,
body.dark-mode select {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================================
   SIDEBAR
   =========================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 32px;
    color: var(--primary);
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text h1 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.logo-text p {
    font-size: 12px;
    color: var(--secondary);
    margin: 0;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    display: none;
}

.sidebar-toggle:hover {
    background: var(--light);
    color: var(--dark);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--light);
    color: var(--dark);
    border-left-color: var(--primary-light);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.1) 0%, rgba(30, 64, 175, 0) 100%);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-item i {
    font-size: 18px;
    width: 24px;
}

.nav-item.has-sub {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-left: 3px solid transparent;
    gap: 0;
}

.nav-item.has-sub .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    width: 100%;
}

.nav-item.has-sub .nav-link i:first-child {
    width: 24px;
}

.sub-caret {
    font-size: 14px;
    color: var(--secondary);
    margin-left: auto;
}

.nav-sub {
    display: none;
    flex-direction: column;
    padding: 0 16px 10px 44px;
    gap: 6px;
}

.nav-item.has-sub.open .nav-sub {
    display: flex;
}

.nav-item.has-sub.open .nav-link {
    background: var(--light);
    border-left-color: var(--primary);
    color: var(--primary);
}

.nav-item.has-sub.open .sub-caret {
    color: var(--primary);
}

.nav-sub-item {
    color: var(--secondary);
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    display: block;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-sub-item.active {
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.nav-sub-item i {
    width: 18px;
    color: var(--primary);
    font-size: 14px;
}

.route-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 255, 255, 0.95);
    font-size: 24px;
    font-weight: 800;
}

.route-marker span {
    font-size: 22px;
    font-weight: 800;
}

.route-marker.route-start {
    background: linear-gradient(145deg, #16a34a, #15803d);
}

.route-marker.route-end {
    background: linear-gradient(145deg, #ea580c, #c2410c);
}

.route-stop-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0ea5e9;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
    font-size: 18px;
}

.route-stop-marker.start {
    background: #22c55e;
}

.route-stop-marker.end {
    background: #f97316;
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 10px 0;
}

/* ===========================================
   MAIN CONTENT
   =========================================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

.top-header {
    background: var(--white);
    height: var(--header-height);
    border-bottom: 1px solid var(--border);
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

#sidebarOpen {
    display: none;
}

.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--light);
    border-radius: var(--radius);
    padding: 0 15px;
    transition: var(--transition);
}

/* PC Arama Görünürlük Garantisi */
@media (min-width: 769px) {
    .header-search {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

.header-search i {
    color: var(--secondary);
    margin-right: 10px;
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 14px;
    outline: none;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.search-result-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--light);
}

.search-result-item i {
    color: var(--primary);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.search-result-subtitle {
    font-size: 12px;
    color: var(--secondary);
    margin-top: 2px;
}

.search-no-result {
    padding: 20px;
    text-align: center;
    color: var(--secondary);
}

/* ===========================================
   SETTINGS PAGE
   =========================================== */
.settings-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.settings-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.setting-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--border);
}

.setting-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.setting-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--dark);
}

.setting-description {
    color: var(--secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.favorite-lines-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.favorite-line-item {
    background: var(--light);
    border-radius: var(--radius);
    padding: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius);
}

.setting-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.setting-actions.stack button {
    justify-content: flex-start;
    gap: 10px;
}

.setting-hints {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.setting-hints li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-size: 14px;
}

.health-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--secondary);
    font-size: 14px;
}

.status-stack {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.full-width {
    width: 100%;
}

.setting-info {
    flex: 1;
}

.setting-info strong {
    display: block;
    color: var(--dark);
    margin-bottom: 4px;
}

.setting-info p {
    font-size: 13px;
    color: var(--secondary);
    margin: 0;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary);
    transition: 0.3s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--success);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.status-box {
    margin-top: 15px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    color: #111827;
}

.status-box:empty {
    display: none;
}

.status-box.success-box {
    background: #ecfdf5;
    border-color: var(--success);
    color: #064e3b;
}

.status-box.error-box {
    background: #fef2f2;
    border-color: var(--danger);
    color: var(--danger);
}

.info-box.status-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 15px;
    border-radius: var(--radius);
}

.btn-secondary.full-width,
.btn-push.full-width {
    justify-content: center;
}

.notification-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.notification-actions .btn-live {
    flex: 1;
}

/* ===========================================
   FLOATING ACTION BUTTON
   =========================================== */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.fab-main.active {
    background: var(--danger);
    transform: rotate(45deg);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
}

.fab-menu.active {
    display: flex;
}

.fab-item {
    background: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: var(--transition);
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
}

.fab-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(-5px);
}

.fab-item i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 90px;
        /* Bottom nav üstüne */
        right: 20px;
    }

    .fab-main {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .fab-item span {
        display: none;
    }

    .fab-item {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

/* FAQ PAGE - Moved to line 6739 (SSS - ACCORDION STİLLERİ) */

/* ===========================================
   NOTIFICATION PANEL
   =========================================== */
.notification-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.notification-panel.active {
    right: 0;
}

.notification-panel-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-panel-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--dark);
}

.btn-close-panel {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary);
    cursor: pointer;
    padding: 5px;
}

.notification-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.notification-item {
    background: var(--light);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    border-left: 3px solid var(--primary);
}

.notif-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.notif-text {
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.notif-time {
    font-size: 12px;
    color: var(--secondary);
}

.notification-panel-footer {
    padding: 15px;
    border-top: 1px solid var(--border);
}

.notification-panel-footer button {
    width: 100%;
    padding: 12px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}

.notification-panel-footer button:hover {
    background: var(--border);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary);
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .notification-panel {
        width: 100%;
        right: -100%;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    position: relative;
    background: var(--light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--secondary);
}

.btn-icon:hover {
    background: var(--border);
    color: var(--dark);
}

.btn-icon .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn.full-width {
    width: 100%;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #d1d5db;
    color: #0f172a;
}

.btn-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--success);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-live:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-live:disabled {
    background: var(--secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-live.active {
    background: var(--danger);
}

.btn-live.active:hover {
    background: #dc2626;
}

/* ===========================================
   PAGES
   =========================================== */
.page {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-header h2 {
    font-size: 28px;
    color: var(--dark);
}

.page-header p {
    color: var(--secondary);
}

.btn-back {
    background: var(--light);
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--border);
}

/* ===========================================
   ANASAYFA
   =========================================== */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.welcome-banner h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.new-features-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 20px;
    align-items: center;
}

.banner-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
}

.banner-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.banner-content ul {
    list-style: none;
    margin: 15px 0;
}

.banner-content li {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-features {
    background: var(--white);
    color: var(--success);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
}

.btn-features:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.quick-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    width: 100%;
    outline: none;
    color: inherit;
    font: inherit;
}

.quick-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quick-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.quick-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--dark);
}

.quick-card p {
    color: var(--secondary);
    font-size: 14px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 15px;
}

.feature-card h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--secondary);
    line-height: 1.6;
}

.announcements-widget {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.favorite-stops-widget {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.favorite-stops-widget h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--dark);
}

.favorite-stop-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid var(--warning);
}

.favorite-stop-card:hover {
    background: var(--border);
    transform: translateX(5px);
}

.stop-icon {
    width: 45px;
    height: 45px;
    background: var(--warning);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stop-line {
    font-size: 12px;
    color: var(--secondary);
    margin-top: 2px;
}

.btn-favorite-stop {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.btn-favorite-stop:hover {
    transform: scale(1.2);
}

.announcements-widget h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--dark);
}

.announcement-item {
    padding: 15px;
    border-left: 3px solid var(--primary);
    background: var(--light);
    margin-bottom: 10px;
    border-radius: 6px;
}

.announcement-date {
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 5px;
}

.announcement-text {
    color: var(--dark);
    font-weight: 500;
}

.announcements-full {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.announcement-header .date {
    font-size: 13px;
    color: var(--secondary);
}

.announcement-header .category {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.announcement-card h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 10px;
}

.announcement-card p {
    color: var(--secondary);
    line-height: 1.6;
}

/* ===========================================
   HATLAR
   =========================================== */
.lines-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.lines-filter input,
.lines-filter select {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.lines-filter input {
    flex: 1;
}

.lines-filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.line-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.line-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.line-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.line-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.line-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-size: 14px;
}

/* ===========================================
   HAT DETAY
   =========================================== */
.line-detail-header {
    flex: 1;
}

.line-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
}

.stat i {
    color: var(--primary);
}

.detail-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    min-height: calc(100vh - var(--header-height) - 160px);
    height: auto;
}

.detail-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detail-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--light);
}

.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.tab-content.active {
    display: block;
}

.search-tabs {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--white);
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.search-form input {
    flex: 1;
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

.search-form .btn-primary {
    white-space: nowrap;
}

.search-result-box {
    margin-top: 10px;
}









.vehicle-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--secondary);
}



.stop-name {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 3px;
}

.stop-eta {
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stop-eta i {
    font-size: 10px;
}

.stop-eta-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.stop-vehicles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.stop-vehicle-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.stop-vehicle-badge i {
    font-size: 9px;
}

.stop-vehicle-badge .badge-plate {
    font-size: 9px;
    color: #64748b;
    margin-left: 2px;
    padding-left: 4px;
    border-left: 1px solid rgba(100, 116, 139, 0.3);
}

.detail-map-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.planner-map-container,
.pos-map-container,
.all-vehicles-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.detail-map {
    width: 100%;
    height: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 13px;
    color: var(--dark);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===========================================
   LOADING & COMING SOON
   =========================================== */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary);
}

.loading-spinner i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.coming-soon {
    text-align: center;
    padding: 100px 20px;
    color: var(--secondary);
}

.coming-soon i {
    font-size: 80px;
    margin-bottom: 20px;
    color: var(--primary);
}

.coming-soon h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 10px;
}

/* ===========================================
   MOBILE
   =========================================== */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: var(--transition);
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    .detail-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .detail-sidebar {
        max-height: 400px;
    }

    .detail-map-container {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    #sidebarOpen {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .top-header {
        padding: 0 15px;
    }

    .header-search {
        max-width: none;
    }

    .btn-login span {
        display: none;
    }

    .page {
        padding: 15px;
    }

    .lines-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   CUSTOM LEAFLET STYLES
   =========================================== */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.bus-popup {
    padding: 10px;
    min-width: 200px;
}

.bus-popup h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 16px;
}

.bus-popup .info-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
}

.bus-popup .info-row:last-child {
    border-bottom: none;
}

.bus-popup .label {
    font-weight: 600;
    color: var(--dark);
}

.bus-popup .value {
    color: var(--secondary);
}

.bus-marker-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    /* Hardware acceleration ile daha smooth animasyon */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    position: relative;
}

/* Yön oku */
.bus-direction-arrow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform-origin: center center;
    color: #1e40af;
    font-size: 18px;
    text-shadow: 0 0 3px white, 0 0 5px white;
    z-index: 10;
    margin-left: -9px;
    transition: transform 0.3s ease-out;
}

.bus-direction-arrow i {
    transform: rotate(-45deg);
}

/* Pusula etiketi */
.bus-compass-label {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    color: white;
    margin-top: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bus-compass-label.dir-outbound {
    background: linear-gradient(135deg, #15803d, #166534);
}

.bus-compass-label.dir-return {
    background: linear-gradient(135deg, #4338ca, #3730a3);
}

.bus-compass-label.dir-unknown {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

/* Leaflet marker container için smooth geçişler */
.leaflet-marker-icon {
    transition: transform 0.3s ease-out !important;
}

/* Custom bus marker için animasyon ayarları */
.custom-bus-marker {
    will-change: transform;
    backface-visibility: hidden;
}

/* Popup içinde durak listesi */
.popup-stops {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.popup-stops-title {
    font-weight: 600;
    font-size: 12px;
    color: #1e40af;
    margin-bottom: 6px;
}

.popup-stops ul {
    margin: 0;
    padding: 0 0 0 16px;
    font-size: 11px;
}

.popup-stops li {
    margin-bottom: 3px;
    color: #475569;
}

.popup-stops .stop-eta-mini {
    color: #059669;
    font-weight: 600;
}

.popup-stops .more-stops {
    color: #94a3b8;
    font-style: italic;
}

.popup-action-hint {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 11px;
    color: #64748b;
    text-align: center;
}

.bus-direction-pill {
    padding: 2px 8px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    line-height: 1.2;
}

.bus-heading-arrow {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.bus-marker-inner {
    position: relative;
}

.dir-outbound {
    background: #15803d;
}

.dir-return {
    background: #4338ca;
}

.dir-unknown {
    background: #6b7280;
}

.direction-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    color: #fff;
    gap: 6px;
}

.direction-chip.dir-outbound {
    background: rgba(21, 128, 61, 0.9);
}

.direction-chip.dir-return {
    background: rgba(67, 56, 202, 0.9);
}

.direction-chip.dir-unknown {
    background: rgba(107, 114, 128, 0.9);
}

.legend-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.map-legend {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 10px 12px;
    min-width: 220px;
    flex: 1;
    max-width: 480px;
}

.map-legend .legend-title,
.map-legend h4 {
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.map-legend .legend-items {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.legend-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.legend-chip.dir-outbound {
    background: #15803d;
}

.legend-chip.dir-return {
    background: #4338ca;
}

.legend-chip.dir-unknown {
    background: #6b7280;
}

.detail-map-container .leaflet-top.leaflet-left {
    top: 14px;
    left: 14px;
}

@media (max-width: 768px) {
    .legend-row {
        flex-direction: column;
    }

    .map-legend {
        min-width: 0;
        width: 100%;
    }

    .detail-map-container .leaflet-top.leaflet-left {
        top: auto;
        bottom: 16px;
        left: 12px;
    }
}


/* ===========================================
   PLANNER & FORMS
   =========================================== */
.planner-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    height: calc(100vh - var(--header-height) - 150px);
}

.planner-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    padding: 20px;
}

.planner-info {
    margin-bottom: 20px;
}

.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    gap: 12px;
}

.info-box i {
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.info-box p {
    color: var(--dark);
    font-size: 14px;
    margin: 0;
}

.planner-map-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 520px;
}

.map-instructions {
    position: absolute;
    bottom: 12px;
    left: 12px;
    transform: none;
    background: rgba(255, 255, 255, 0.92);
    padding: 10px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20;
    max-width: 92%;
    pointer-events: none;
}

.map-instructions i {
    color: var(--primary);
    font-size: 18px;
}

.route-planner-card {
    margin-top: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 20px;
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.route-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.route-map-container {
    position: relative;
    min-height: 380px;
}

.route-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.route-summary {
    background: var(--light);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    color: var(--dark);
}

.route-section h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--dark);
}

.route-section h5 {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--secondary);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 12px;
    border: 1px solid #c7d2fe;
}

.nearby-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.nearby-list {
    background: var(--light);
    border-radius: var(--radius);
    padding: 10px;
    min-height: 80px;
    box-shadow: var(--shadow-sm);
}

.nearby-item {
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
}

.nearby-item .nearby-title {
    font-weight: 700;
    color: #111827;
}

.nearby-item .nearby-meta {
    font-size: 12px;
    color: #6b7280;
}

.nearby-item .nearby-actions {
    margin-top: 6px;
}

.btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}

.btn-mini:hover {
    background: #1e40af;
    color: #fff;
}


.connectivity-banner {
    position: fixed;
    top: 66px;
    right: 16px;
    left: auto;
    width: min(360px, calc(100% - 32px));
    background: linear-gradient(135deg, #0f766e, #0ea5e9);
    color: #ecfeff;
    border: 1px solid rgba(15, 118, 110, 0.35);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9997;
    backdrop-filter: blur(6px);
}

.connectivity-banner .cb-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #e0f2fe;
}

.connectivity-banner .cb-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.connectivity-banner .cb-title {
    font-size: 13px;
    line-height: 18px;
}

.connectivity-banner .cb-desc {
    font-size: 12px;
    color: #e0f2fe;
}

.connectivity-banner.offline {
    background: #7f1d1d;
    border-color: #991b1b;
}

.connectivity-banner.offline .cb-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #fecdd3;
}

.connectivity-banner.online {
    background: #064e3b;
    border-color: #065f46;
}

.connectivity-banner.online .cb-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #bbf7d0;
}

@media (max-width: 640px) {
    .connectivity-banner {
        top: 54px;
        left: 10px;
        right: 10px;
        padding: 10px;
    }
}

.nearby-item:last-child {
    border-bottom: none;
}

.history-list {
    background: var(--light);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow-sm);
}

.history-item {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}

.history-item:last-child {
    border-bottom: none;
}

.update-banner {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1100;
}

.update-text {
    color: var(--dark);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.update-text i {
    color: var(--primary);
}

.update-actions {
    display: flex;
    gap: 8px;
}

#nearbyStopsResult h3,
#nearbyLinesResult h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

#nearbyStopsResult h3 i,
#nearbyLinesResult h3 i {
    color: var(--primary);
}

.stop-info {
    flex: 1;
}

.stop-meta {
    font-size: 12px;
    color: var(--secondary);
    margin-top: 4px;
}

.stop-item-planner {
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--primary);
}

.btn-direction-small {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-direction-small:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.line-card-small {
    background: var(--light);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid var(--primary);
}

.line-number-small {
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.btn-track-line {
    background: var(--success);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.btn-track-line:hover {
    background: #059669;
}

.planner-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.schedule-form {
    background: var(--white);
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
}

.schedule-results {
    background: var(--white);
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.schedule-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dark);
}

.schedule-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.schedule-results .loading-spinner {
    text-align: center;
    padding: 20px 0;
    color: var(--secondary);
}

.schedule-results .info-box,
.schedule-results .error-box {
    margin-top: 8px;
}

.schedule-results table th:nth-child(1),
.schedule-results table td:nth-child(1) {
    width: 120px;
    white-space: nowrap;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group select,
#scheduleLineSelect {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e40af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group select:hover,
#scheduleLineSelect:hover {
    border-color: var(--primary-light);
}

.form-group select:focus,
#scheduleLineSelect:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

body.dark-mode .form-group select,
body.dark-mode #scheduleLineSelect {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b82f6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.schedule-item {
    padding: 12px 15px;
    background: var(--light);
    border-radius: var(--radius);
    margin-bottom: 8px;
    border-left: 3px solid var(--primary);
}

/* ===========================================
   ALL VEHICLES MAP
   =========================================== */
.all-vehicles-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.all-vehicles-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.all-vehicles-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.all-vehicles-map {
    height: calc(100vh - var(--header-height) - 210px);
    min-height: 420px;
    width: 100%;
}

.all-vehicles-legend {
    margin-top: 14px;
}

.vehicle-stats {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 15px;
}

@media (max-width: 768px) {
    .all-vehicles-map {
        height: 380px;
    }
}

/* ===========================================
   POINT OF SALE
   =========================================== */
.pos-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    height: calc(100vh - var(--header-height) - 150px);
}

.pos-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    padding: 20px;
}

.pos-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pos-item {
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius);
    border-left: 3px solid var(--danger);
}

.pos-item h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 10px;
}

.pos-item p {
    font-size: 14px;
    color: var(--secondary);
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-direction,
.btn-direction-popup {
    margin-top: 10px;
    padding: 10px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}

.btn-direction:hover,
.btn-direction-popup:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-direction-popup {
    margin-top: 15px;
}

.pos-map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ===========================================
   QUERY CARDS
   =========================================== */
.query-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--dark);
}

.card .btn-live {
    width: 100%;
    margin-top: 15px;
    justify-content: center;
}

.page-header .btn-live {
    margin-left: auto;
}

.result-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--radius);
}

.success-box {
    background: #ecfdf5;
    border: 1px solid var(--success);
    color: var(--dark);
}

.success-box p {
    margin: 8px 0;
}

.error-box {
    background: #fef2f2;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 15px;
    border-radius: var(--radius);
}

/* ===========================================
   PRICE TABLE
   =========================================== */
.price-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border-collapse: collapse;
}

.price-table thead {
    background: var(--primary);
    color: var(--white);
}

.price-table th,
.price-table td {
    padding: 15px;
    text-align: left;
}

.price-table tbody tr {
    border-bottom: 1px solid var(--border);
}

.price-table tbody tr:hover {
    background: var(--light);
}

@media (max-width: 1024px) {

    .pos-container,
    .planner-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .pos-sidebar,
    .planner-sidebar {
        max-height: 400px;
    }

    .pos-map-container,
    .planner-map-container,
    .route-map-container {
        min-height: 520px;
    }

    .route-grid {
        grid-template-columns: 1fr;
    }

    .route-info {
        margin-top: 12px;
    }

    .nearby-cols {
        grid-template-columns: 1fr;
    }

    .query-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .map-instructions {
        font-size: 13px;
        gap: 8px;
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }

    .route-map-container,
    .planner-map-container {
        min-height: 60vh;
    }
}

/* Success Popup Notification */
.success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    text-align: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
    width: 90%;
}

.success-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.dark-mode .success-popup {
    background: #1e293b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.success-popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupBounce 0.5s ease;
}

@keyframes popupBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.success-popup-icon i {
    color: white;
    font-size: 40px;
    animation: checkmark 0.5s ease 0.3s forwards;
    opacity: 0;
}

@keyframes checkmark {
    to {
        opacity: 1;
        transform: scale(1.1);
    }
}

.success-popup h3 {
    color: #1e293b;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.dark-mode .success-popup h3 {
    color: #f1f5f9;
}

.success-popup p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.dark-mode .success-popup p {
    color: #94a3b8;
}

.success-popup-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.success-popup-line {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #667eea, #764ba2) border-box;
}

.dark-mode .success-popup-line {
    background: linear-gradient(#2d3748, #2d3748) padding-box,
        linear-gradient(135deg, #667eea, #764ba2) border-box;
    color: #e2e8f0;
}

.success-popup-close {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.success-popup-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.popup-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* Notification System Improvements */
.notification-status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.notification-status-card.is-closed {
    background: var(--light);
    color: var(--dark);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.notification-status-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.notification-status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.notification-status-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-status-icon i {
    font-size: 22px;
    animation: ring 2s ease-in-out infinite;
}

.notification-status-card.is-closed .notification-status-icon {
    background: rgba(55, 65, 81, 0.06);
}

.notification-status-card.is-closed .notification-status-icon i {
    color: var(--primary);
    animation: none;
}

@keyframes ring {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-15deg);
    }

    20%,
    40% {
        transform: rotate(15deg);
    }
}

.notification-status-title {
    flex: 1;
}

.notification-status-title h4 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.notification-status-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 2px;
}

.notification-status-body {
    position: relative;
    z-index: 1;
}

.notification-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.notification-info-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px;
    backdrop-filter: blur(10px);
}

.notification-info-label {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-info-value {
    font-size: 14px;
    font-weight: 600;
}

.notification-status-card.is-closed .notification-info-item {
    background: #f3f4f6;
    border: 1px dashed var(--border);
}

/* Notification Action Buttons - Smaller and Better */
.notification-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.notification-feedback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    margin-top: 8px;
}

.notification-feedback.success-box {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #22c55e;
}

.notification-feedback.error-box {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #ef4444;
}

.notification-feedback.info-box {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #60a5fa;
}

.notification-actions .btn {
    flex: 1;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notification-actions .btn i {
    font-size: 16px;
}

.btn-quiet {
    background: #f59e0b;
    color: white;
}

.btn-quiet:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-stop {
    background: #ef4444;
    color: white;
}

.btn-stop:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.setting-actions .action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.btn-push.outline {
    background: transparent;
    color: #10b981;
    border: 1px solid #10b981;
}

.btn-push.outline:hover {
    background: rgba(16, 185, 129, 0.08);
    color: #0f9e7a;
    box-shadow: none;
}

.btn-push {
    background: #10b981;
    color: white;
}

.btn-push:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .notification-actions {
        flex-direction: column;
    }

    .notification-actions .btn {
        width: 100%;
        padding: 12px;
    }

    .setting-actions .action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .notification-status-icon {
        width: 40px;
        height: 40px;
    }

    .notification-status-icon i {
        font-size: 20px;
    }

    .notification-status-title h4 {
        font-size: 16px;
    }

    /* FAB button smaller on mobile */
    .fab-main {
        width: 50px;
        height: 50px;
    }

    .fab-main i {
        font-size: 22px;
    }
}

/* Dark mode support */
.dark-mode .notification-status-card {
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
}

/* ===========================================
   TOP BAR & MOBILE NAVIGATION
   =========================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: none;
    align-items: center;
    padding: 0 16px;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.top-bar .sidebar-toggle {
    display: flex !important;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.app-title i {
    font-size: 24px;
    color: var(--primary);
}

.app-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

/* Eski anasayfa arama kartlarını gizle (kalıntı HTML için) */
.home-search-grid {
    display: none !important;
}

/* Mobile: Show top-bar, hide/toggle sidebar */
@media (max-width: 768px) {
    .top-bar {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        padding-top: 70px;
    }
}

/* Desktop: Hide top-bar, always show sidebar */
@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0) !important;
    }

    #sidebarClose {
        display: none;
    }
}

/* ===========================================
   MOBILE MAP FIXES
   =========================================== */
/* Harita container'ların mobilde düzgün görünmesi */
.detail-map,
#plannerMap,
#routePlannerMap {
    width: 100% !important;
    min-height: 300px;
}

/* Mobil için harita yükseklik düzeltmeleri */
@media (max-width: 768px) {

    .detail-map-container,
    .planner-map-container,
    .route-map-container {
        height: 400px;
        min-height: 350px;
        max-height: 60vh;
    }

    #plannerMap,
    #routePlannerMap {
        height: 100% !important;
        min-height: 350px;
    }

    /* Touch etkileşimi iyileştirmeleri */
    .leaflet-container {
        touch-action: pan-x pan-y;
        -webkit-tap-highlight-color: transparent;
    }

    .leaflet-control-zoom {
        margin-top: 10px !important;
        margin-left: 10px !important;
    }

    /* Marker'ların mobilde daha büyük olması */
    .route-marker {
        width: 48px !important;
        height: 48px !important;
        border-radius: 16px !important;
    }

    .route-stop-marker {
        width: 40px !important;
        height: 40px !important;
    }

    /* Popup'ların mobilde düzgün görünmesi */
    .leaflet-popup-content-wrapper {
        max-width: 280px;
    }

    .leaflet-popup-content {
        margin: 10px;
        font-size: 13px;
    }
}

/* Tablet için harita düzeltmeleri */
@media (max-width: 1024px) and (min-width: 769px) {

    .detail-map-container,
    .planner-map-container,
    .route-map-container {
        min-height: 450px;
    }
}

/* Harita yükleniyor göstergesi */
.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: var(--radius);
}

.map-loading-overlay i {
    font-size: 32px;
    color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Leaflet harita temizlendiğinde background */
.detail-map:empty,
#plannerMap:empty,
#routePlannerMap:empty {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
}

/* ===========================================
   TOAST NOTIFICATIONS
   =========================================== */
.app-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.app-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.app-toast.success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.app-toast.error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.app-toast.warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.app-toast i {
    font-size: 16px;
}

/* ===========================================
   LIVE PULSE ANIMATION
   =========================================== */
.live-pulse {
    position: relative;
}

.live-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: rgba(37, 99, 235, 0.3);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.live-pulse.pulse-active::after {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
}

/* ===========================================
   RECENT LINES WIDGET
   =========================================== */
.recent-lines-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.recent-lines-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.recent-line-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-light);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.recent-line-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.recent-line-no {
    font-weight: 700;
    font-size: 13px;
}

.recent-line-name {
    font-size: 12px;
    opacity: 0.8;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===========================================
   IMPROVED BUS MARKER ANIMATION
   =========================================== */
@keyframes markerPulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
    }

    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    }
}

.bus-marker-inner {
    position: relative;
    animation: markerPulse 2s ease-in-out infinite;
}

/* ===========================================
   QUICK ACTION BUTTONS
   =========================================== */
.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.quick-action-btn:active {
    transform: translateY(0);
}

/* ===========================================
   ENHANCED POPUP STYLES
   =========================================== */
.bus-popup {
    min-width: 220px;
}

.bus-popup h4 {
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    color: var(--dark);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bus-popup h4 i {
    color: var(--primary);
}

.bus-popup .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
}

.bus-popup .label {
    color: #64748b;
    font-weight: 500;
}

.bus-popup .value {
    color: var(--dark);
    font-weight: 600;
}

.bus-popup .value i {
    margin-right: 4px;
    color: var(--primary);
}

/* Dark mode toast */
.dark-mode .app-toast {
    background: #334155;
}

.dark-mode .recent-line-item {
    background: var(--dark-card);
    border-color: var(--dark-border);
}

/* ===========================================
   BOTTOM NAVIGATION (MOBILE)
   =========================================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1100;
    justify-content: space-around;
    padding: 10px 5px 25px 5px;
    /* iPhone home indicator safe area */
    border-top: 1px solid var(--border);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--secondary);
    font-size: 11px;
    gap: 4px;
    flex: 1;
    padding: 5px;
    border-radius: 8px;
    transition: var(--transition);
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
    transition: var(--transition);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
}

/* ===========================================
   MARKER ANIMATION & MODERN UI
   =========================================== */
.leaflet-marker-icon {
    transition: all 1s linear;
    /* Smooth movement */
}

/* Sidebar Mobile Styles */
@media (max-width: 768px) {
    .sidebar {
        display: block;
        transform: translateX(-100%);
        width: 280px;
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.3);
    }

    .main-content {
        margin-left: 0;
        padding-bottom: 80px;
    }

    .top-header {
        padding: 0 15px;
    }

    #sidebarToggle {
        display: block;
        /* Hamburger menu visible */
    }

    .bottom-nav {
        display: flex;
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Connectivity Banner (Toast Style) */
.connectivity-banner {
    position: fixed;
    top: 90px;
    right: 20px;
    background: #ef4444;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
}

.connectivity-banner .cb-icon {
    font-size: 20px;
    background: rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.connectivity-banner .cb-text {
    flex: 1;
}

.connectivity-banner .cb-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.connectivity-banner .cb-desc {
    font-size: 12px;
    opacity: 0.9;
}

.connectivity-banner button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===========================================
   SKELETON LOADING
   =========================================== */
.skeleton {
    background: #f0f2f5;
    background: linear-gradient(90deg, #f0f2f5 25%, #e6e8eb 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-box {
    height: 100px;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* ===========================================
   GLASSMORPHISM
   =========================================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dark-mode .glass-panel {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Apply Glass to specific improvements */
.bottom-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .bottom-nav {
    background: rgba(15, 23, 42, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}







/* ===========================================
   SMART SEARCH HISTORY
   =========================================== */
.smart-search-history {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
    display: none;
}

.history-title {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 0.5px;
}

.history-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: var(--light);
}

.history-item i {
    color: var(--secondary);
    font-size: 14px;
}

.dark-mode .smart-search-history {
    background: var(--dark-card);
    border-color: var(--border);
}

.dark-mode .history-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ===========================================
   KOMPAKT FAVORİ HATLAR LİSTESİ
   =========================================== */
.favorite-lines-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.favorite-line-compact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.favorite-line-compact-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(4px);
}

.favorite-line-compact-item:hover .line-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.favorite-line-compact-item:hover .btn-remove-fav {
    color: rgba(255, 255, 255, 0.8);
}

.favorite-line-compact-item .line-number {
    min-width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.favorite-line-compact-item .line-name {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-line-compact-item .btn-remove-fav {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 14px;
    flex-shrink: 0;
}

.favorite-line-compact-item .btn-remove-fav:hover {
    background: var(--danger);
    color: white;
}

/* Dark Mode */
.dark-mode .favorite-line-compact-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
}

.dark-mode .favorite-line-compact-item:hover {
    background: var(--primary);
}

/* ===========================================
   UX İYİLEŞTİRMELERİ
   =========================================== */

/* ---- Skeleton Loading Genişletmeleri ---- */
.skeleton-line-card {
    height: 120px;
    background: linear-gradient(90deg, #f0f2f5 25%, #e6e8eb 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

.skeleton-stop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--light);
    border-radius: var(--radius);
    margin-bottom: 8px;
}

.skeleton-stop-item .skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f2f5 25%, #e6e8eb 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    flex-shrink: 0;
}

.skeleton-stop-item .skeleton-content {
    flex: 1;
}

.skeleton-stop-item .skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f0f2f5 25%, #e6e8eb 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-stop-item .skeleton-line:last-child {
    width: 60%;
    margin-bottom: 0;
}

/* ---- Pull to Refresh ---- */
.pull-to-refresh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.pull-to-refresh.visible {
    transform: translateY(0);
}

.pull-to-refresh.pulling {
    transform: translateY(calc(var(--pull-progress, 0) * 60px - 60px));
}

.pull-to-refresh i {
    font-size: 24px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.pull-to-refresh.ready i {
    transform: rotate(180deg);
}

.pull-to-refresh.refreshing i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ---- ETA Countdown ---- */
.eta-countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--success);
    color: white;
    transition: background 0.5s ease;
}

.eta-countdown.warning {
    background: var(--warning);
    color: #1e293b;
}

.eta-countdown.urgent {
    background: var(--danger);
    animation: pulse-urgent 1s infinite;
}

@keyframes pulse-urgent {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.eta-countdown .eta-time {
    font-variant-numeric: tabular-nums;
    min-width: 35px;
    text-align: center;
}

/* ---- Offline / Stale Data ---- */
.stale-data-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 13px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stale-data-banner i {
    font-size: 18px;
}

.stale-data-banner .stale-time {
    font-weight: 600;
}

.vehicle-marker-offline {
    filter: grayscale(100%) opacity(0.6);
}

.vehicle-item.stale {
    opacity: 0.6;
    border-left: 3px solid var(--warning);
}

.vehicle-item.stale::after {
    content: 'Eski veri';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    background: var(--warning);
    color: #1e293b;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Dark Mode UX styles */
.dark-mode .skeleton-line-card,
.dark-mode .skeleton-stop-item .skeleton-icon,
.dark-mode .skeleton-stop-item .skeleton-line {
    background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
    background-size: 200% 100%;
}

.dark-mode .skeleton-stop-item {
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .stale-data-banner {
    background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
}

/* ===========================================
   ARAÇ YÖN OKLARI
   =========================================== */
.custom-bus-marker {
    background: none !important;
    border: none !important;
}

.bus-marker-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bus-direction-arrow {
    position: absolute;
    top: -12px;
    left: 50%;
    transform-origin: center center;
    margin-left: -8px;
    color: #1e40af;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: transform 0.3s ease;
}

.bus-compass-label {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.bus-compass-label.dir-gidis {
    background: #16a34a;
}

.bus-compass-label.dir-donus {
    background: #dc2626;
}

/* ===========================================
   SON KULLANILAN HATLAR
   =========================================== */
.recent-lines-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.recent-lines-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recent-lines-title i {
    color: var(--primary);
}

.recent-lines-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recent-line-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--light);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.recent-line-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.recent-line-no {
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    min-width: 30px;
    text-align: center;
}

.recent-line-item:hover .recent-line-no {
    background: rgba(255, 255, 255, 0.2);
}

.recent-line-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* ===========================================
   KONFETİ EFEKTİ
   =========================================== */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confetti-fall 3s ease-in-out forwards;
}

.confetti.circle {
    border-radius: 50%;
}

.confetti.square {
    border-radius: 2px;
}

.confetti.ribbon {
    width: 4px;
    height: 16px;
    border-radius: 2px;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(-100px) rotate(0deg) scale(1);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg) scale(0.5);
    }
}

/* ARRIVAL CELEBRATION */
.arrival-celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 24px 48px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    z-index: 10001;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
    animation: celebration-pop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.arrival-celebration i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    animation: bounce 0.6s ease infinite;
}

@keyframes celebration-pop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Dark Mode */
.dark-mode .recent-lines-widget {
    background: var(--dark-card, #1e293b);
}

.dark-mode .recent-line-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
}

.dark-mode .recent-line-item:hover {
    background: var(--primary);
}

/* ===========================================
   FAVORİ HATLAR WİDGET
   =========================================== */
.favorite-lines-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.favorite-lines-widget .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.favorite-lines-widget .widget-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorite-lines-widget .widget-header h3 i {
    color: #ef4444;
}

.favorite-lines-widget .widget-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.favorite-lines-widget .widget-link:hover {
    text-decoration: underline;
}

.favorite-lines-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.favorite-lines-scroll::-webkit-scrollbar {
    height: 4px;
}

.favorite-lines-scroll::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 4px;
}

.favorite-lines-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.favorite-line-card {
    flex: 0 0 auto;
    min-width: 140px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: white;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    scroll-snap-align: start;
    text-align: center;
}

.favorite-line-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.favorite-line-card .line-no {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.favorite-line-card .line-name {
    font-size: 12px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-line-card .line-vehicles {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.favorite-lines-empty {
    text-align: center;
    padding: 24px;
    color: #64748b;
}

.favorite-lines-empty i {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.favorite-lines-empty p {
    font-size: 14px;
    margin-bottom: 12px;
}

.favorite-lines-empty .btn-add-fav {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.favorite-lines-empty .btn-add-fav:hover {
    background: #1e40af;
    transform: scale(1.05);
}

/* Dark Mode */
.dark-mode .favorite-lines-widget {
    background: var(--dark-card, #1e293b);
}

.dark-mode .favorite-line-card {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

/* =====================================================
   HAT DETAY - BOTTOM SHEET LAYOUT
   ===================================================== */

#page-hat-detay {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

/* Mobile Header */
.line-detail-header-mobile {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 100;
    gap: 12px;
}

.line-detail-header-mobile .btn-back {
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    color: #1e293b;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.line-detail-header-mobile .btn-back:hover {
    background: var(--primary);
    color: white;
}

.line-detail-header-mobile .header-info {
    flex: 1;
}

.line-detail-header-mobile .header-info h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.line-detail-header-mobile .active-count {
    font-size: 12px;
    color: #64748b;
}

.line-detail-header-mobile .active-count strong {
    color: var(--primary);
}

.line-detail-header-mobile .btn-favorite {
    width: 40px;
    height: 40px;
    border: none;
    background: #fef2f2;
    border-radius: 10px;
    color: #ef4444;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.line-detail-header-mobile .btn-favorite.active {
    background: #ef4444;
    color: white;
}

.line-detail-header-mobile .btn-favorite.active i {
    font-weight: 900;
}

/* Map Area */
.map-area {
    position: relative;
    flex: 0 0 55%;
    min-height: 250px;
}

.detail-map-fullscreen {
    width: 100%;
    height: 100%;
}

/* Legend Overlay */
.legend-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 500;
}

.legend-mini {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 2px;
}

/* Direction Toggle */
.direction-toggle {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 25px;
    padding: 4px;
    display: flex;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 500;
}

.direction-toggle .dir-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.direction-toggle .dir-btn.active {
    background: var(--primary);
    color: white;
}

/* Bottom Sheet */
.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 600;
    max-height: 70vh;
    min-height: 200px;
    height: 45%;
    display: flex;
    flex-direction: column;
    transition: height 0.3s ease;
}

.bottom-sheet.expanded {
    height: 80vh;
}

.bottom-sheet.collapsed {
    height: 120px;
}

/* Sheet Handle */
.sheet-handle {
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 4px;
    margin: 12px auto 8px;
    cursor: grab;
}

.sheet-handle:active {
    cursor: grabbing;
}

/* Sheet Tabs */
.sheet-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 16px;
}

.sheet-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.sheet-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.sheet-tab i {
    font-size: 16px;
}

/* Sheet Content */
.sheet-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.tab-panel {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding: 16px;
}

.tab-panel.active {
    display: block;
}

/* Vehicle List */
.vehicles-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vehicle-card-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.vehicle-card-mini:hover {
    background: #e0f2fe;
    transform: translateX(4px);
}

.vehicle-card-mini.tracking {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border: 2px solid var(--primary);
}

.vehicle-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.vehicle-icon.moving {
    background: #dcfce7;
    color: #16a34a;
}

.vehicle-icon.slow {
    background: #fef9c3;
    color: #ca8a04;
}

.vehicle-icon.stopped {
    background: #fee2e2;
    color: #dc2626;
}

.vehicle-info {
    flex: 1;
}

.vehicle-plate {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.vehicle-status {
    font-size: 12px;
    color: #64748b;
}

.vehicle-eta {
    text-align: right;
}

.eta-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.eta-label {
    font-size: 11px;
    color: #94a3b8;
}

/* Stops List */
.stops-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stop-item-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.stop-item-mini:hover {
    background: #e0f2fe;
}

.stop-item-mini.favorite {
    background: #fef3c7;
}

.stop-number {
    min-width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.stop-info {
    flex: 1;
}

.stop-name-mini {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.stop-code {
    font-size: 11px;
    color: #94a3b8;
}

.stop-eta {
    text-align: right;
}

.stop-eta .eta-countdown {
    font-size: 14px;
    font-weight: 700;
}

/* Dark Mode */
.dark-mode #page-hat-detay {
    background: #0f172a;
}

.dark-mode .line-detail-header-mobile {
    background: #1e293b;
}

.dark-mode .line-detail-header-mobile .btn-back {
    background: #334155;
    color: #e2e8f0;
}

.dark-mode .line-detail-header-mobile .header-info h2 {
    color: #f1f5f9;
}

.dark-mode .bottom-sheet {
    background: #1e293b;
}

.dark-mode .sheet-handle {
    background: #475569;
}

.dark-mode .sheet-tabs {
    border-bottom-color: #334155;
}

.dark-mode .sheet-tab {
    color: #94a3b8;
}

.dark-mode .vehicle-card-mini,
.dark-mode .stop-item-mini {
    background: #334155;
}

.dark-mode .vehicle-plate,
.dark-mode .stop-name-mini {
    color: #f1f5f9;
}

.dark-mode .legend-mini {
    background: rgba(30, 41, 59, 0.95);
    color: #e2e8f0;
}

.dark-mode .direction-toggle {
    background: #1e293b;
}

.dark-mode .direction-toggle .dir-btn {
    color: #94a3b8;
}

/* Responsive */
@media (min-width: 768px) {
    #page-hat-detay {
        flex-direction: row;
    }

    .line-detail-header-mobile {
        display: none;
    }

    .map-area {
        flex: 0 0 60%;
        height: 100vh;
    }

    .bottom-sheet {
        position: relative;
        flex: 1;
        border-radius: 0;
        max-height: none;
        height: 100vh;
    }

    .sheet-handle {
        display: none;
    }
}

/* =====================================================
   HATLAR SAYFASI - GELİŞMİŞ FİLTRELEME
   ===================================================== */

/* Favori Hatlar Bölümü */
.favorite-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.dark-mode .favorite-section {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin: 0;
}

.dark-mode .section-header h3 {
    color: #fef3c7;
}

.section-header .badge {
    background: #f59e0b;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.favorite-lines-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.favorite-lines-row::-webkit-scrollbar {
    height: 4px;
}

.favorite-lines-row::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 4px;
}

/* Gelişmiş Arama */
.lines-filter-enhanced {
    margin-bottom: 24px;
}

.search-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

.search-wrapper input {
    width: 100%;
    padding: 14px 48px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: var(--white);
    color: var(--dark);
    transition: var(--transition);
}

.search-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
    outline: none;
}

.search-wrapper input::placeholder {
    color: #94a3b8;
}

.clear-search {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: var(--transition);
}

.clear-search:hover {
    background: #cbd5e1;
}

/* Filtre Satırı */
.filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    min-width: 140px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-btn.active i {
    font-weight: 900;
}

/* Grid/List Toggle */
.view-toggle {
    display: flex;
    margin-left: auto;
    background: var(--light);
    border-radius: 8px;
    padding: 4px;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.view-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Sonuç Bilgisi */
.results-info {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--secondary);
}

.results-info span {
    font-weight: 700;
    color: var(--primary);
}

/* Liste Görünümü */
.lines-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lines-grid.list-view .line-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

.lines-grid.list-view .line-number {
    margin-bottom: 0;
    width: 44px;
    height: 44px;
    font-size: 16px;
}

.lines-grid.list-view .line-content {
    flex: 1;
}

.lines-grid.list-view .line-name {
    margin-bottom: 4px;
}

.lines-grid.list-view .line-info {
    font-size: 13px;
}

/* Favori Hat Vurgulama */
.line-card.is-favorite {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.3) 0%, var(--white) 100%);
}

.line-card.is-favorite .favorite-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #f59e0b;
    font-size: 14px;
}

.line-card {
    position: relative;
}

/* Dark Mode */
.dark-mode .search-wrapper input {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .filter-select,
.dark-mode .filter-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.dark-mode .view-toggle {
    background: #1e293b;
}

.dark-mode .view-btn.active {
    background: #334155;
}

.dark-mode .line-card.is-favorite {
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.3) 0%, #1e293b 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-row>* {
        width: 100%;
    }

    .view-toggle {
        margin-left: 0;
        justify-content: center;
    }

    .favorite-lines-row {
        margin: 0 -20px;
        padding: 0 20px 8px;
    }
}

/* =====================================================
   TÜM ARAÇLAR SAYFASI (yakin-noktalar)
   ===================================================== */

.all-vehicles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vehicle-stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.stat-box i {
    font-size: 20px;
    color: var(--primary);
}

.stat-box.moving {
    border-left-color: #10b981;
}

.stat-box.moving i {
    color: #10b981;
}

.stat-box.stopped {
    border-left-color: #ef4444;
}

.stat-box.stopped i {
    color: #ef4444;
}

.stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 12px;
    color: var(--secondary);
}

.all-vehicles-map-area {
    position: relative;
    height: calc(100vh - 220px);
    min-height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.all-vehicles-map {
    width: 100%;
    height: 100%;
}

/* Direction Legend Slot */
.direction-legend-slot {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 500;
}

.direction-legend-slot .map-legend {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* Dark Mode */
.dark-mode .stat-box {
    background: #1e293b;
}

.dark-mode .stat-value {
    color: #f1f5f9;
}

.dark-mode .direction-legend-slot .map-legend {
    background: rgba(30, 41, 59, 0.95);
    color: #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .all-vehicles-header {
        flex-direction: column;
        align-items: stretch;
    }

    .vehicle-stats-row {
        justify-content: space-between;
    }

    .stat-box {
        flex: 1;
        min-width: calc(33% - 12px);
        padding: 10px 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .stat-box i {
        font-size: 18px;
    }

    .stat-value {
        font-size: 18px;
    }

    .all-vehicles-map-area {
        height: calc(100vh - 320px);
    }
}

/* =====================================================
   SEYAHAT PLANLAYICISI
   ===================================================== */

/* Mod Toggle */
.planner-mode-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.mode-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.mode-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.mode-btn i {
    font-size: 18px;
}

/* Planner Layout */
.planner-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    min-height: calc(100vh - 350px);
}

.planner-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Planner Info Card */
.planner-info-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border-radius: var(--radius);
}

.dark-mode .planner-info-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #164e63 100%);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}

.info-text p {
    font-size: 13px;
    color: var(--secondary);
    line-height: 1.5;
}

/* Result Cards */
.result-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.result-header i {
    color: var(--primary);
    font-size: 16px;
}

.result-header h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-list.chips {
    flex-direction: row;
    flex-wrap: wrap;
}

/* Map Area */
.planner-map-area {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 500px;
    height: calc(100vh - 380px);
}

.planner-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.map-instructions-overlay {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    box-shadow: var(--shadow-lg);
    z-index: 500;
}

.map-instructions-overlay i {
    color: var(--primary);
}

/* Route Header Bar */
.route-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius);
}

.dark-mode .route-header-bar {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}

.route-info-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 4px 0;
}

.dark-mode .route-info-text h4 {
    color: #fef3c7;
}

.route-info-text p {
    font-size: 13px;
    color: #b45309;
    margin: 0;
}

.dark-mode .route-info-text p {
    color: #fcd34d;
}

.btn-reset {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-reset:hover {
    background: #dc2626;
}

/* Route Summary Card */
.route-summary-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    color: var(--secondary);
}

/* Nearby Cols */
.nearby-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.nearby-col h5 {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nearby-col h5 i {
    color: var(--primary);
}

/* Button Secondary */
.btn-secondary {
    background: var(--light);
    border: 1px solid var(--border);
    color: var(--dark);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--border);
}

/* Dark Mode */
.dark-mode .mode-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.dark-mode .result-card {
    background: #1e293b;
}

.dark-mode .map-instructions-overlay {
    background: rgba(30, 41, 59, 0.95);
    color: #e2e8f0;
}

.dark-mode .route-summary-card {
    background: #334155;
}

/* Responsive */
@media (max-width: 992px) {
    .planner-layout {
        grid-template-columns: 1fr;
    }

    .planner-sidebar {
        order: 2;
    }

    .planner-map-area {
        order: 1;
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .planner-mode-toggle {
        flex-direction: column;
    }

    .mode-btn {
        justify-content: flex-start;
    }

    .nearby-cols {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   ANASAYFA - YENİ TASARIM
   ===================================================== */

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    border-radius: var(--radius);
    padding: 40px 30px;
    margin-bottom: 24px;
    text-align: center;
    color: white;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.hero-icon i {
    font-size: 36px;
}

.hero-banner h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-banner p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
}

.hero-stat span {
    font-size: 12px;
    opacity: 0.8;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.action-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-card.primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    border-color: transparent;
    color: white;
}

.action-card.primary .action-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.action-card.primary .action-arrow {
    color: rgba(255, 255, 255, 0.7);
}

.action-icon {
    width: 44px;
    height: 44px;
    background: var(--light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.action-text {
    flex: 1;
}

.action-text h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px 0;
}

.action-text p {
    font-size: 12px;
    color: var(--secondary);
    margin: 0;
}

.action-card.primary .action-text p {
    color: rgba(255, 255, 255, 0.8);
}

.action-arrow {
    color: #cbd5e1;
    font-size: 12px;
}

/* Widget Card */
.widget-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.widget-header h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

.widget-header h3 i {
    color: var(--primary);
}

.widget-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.widget-link:hover {
    text-decoration: underline;
}

/* Location Button */
.location-action {
    margin-bottom: 24px;
}

.btn-location {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-location:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Features Section */
.features-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.features-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.feature-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--primary);
}

.feature-item i {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.feature-item span {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
}

/* Announcements Compact */
.announcement-list-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.announcement-item-compact {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--light);
    border-radius: 8px;
}

.announcement-item-compact .announcement-date {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    min-width: 50px;
}

.announcement-item-compact .announcement-text {
    font-size: 13px;
    color: var(--dark);
}

/* Favorite Stops List */
.favorite-stops-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Recent Lines List */
.recent-lines-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}

/* Dark Mode */
.dark-mode .hero-banner {
    background: linear-gradient(135deg, #1e40af 0%, #0f172a 100%);
}

.dark-mode .action-card {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .action-icon {
    background: #334155;
}

.dark-mode .action-text p {
    color: #94a3b8;
}

.dark-mode .widget-card {
    background: #1e293b;
}

.dark-mode .feature-item {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .announcement-item-compact {
    background: #334155;
}

/* Responsive */
@media (max-width: 600px) {
    .hero-banner {
        padding: 30px 20px;
    }

    .hero-banner h1 {
        font-size: 24px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat strong {
        font-size: 20px;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .features-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   KALAN SAYFALAR - TUTARLI STİLLER
   ===================================================== */

/* Tariff Card */
.tariff-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.tariff-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    color: white;
}

.tariff-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tariff-info p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

.badge-soap {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.tariff-body {
    padding: 20px;
}

/* Schedule Card */
.schedule-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.schedule-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.schedule-form .form-group {
    flex: 1;
}

.schedule-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.schedule-form label i {
    color: var(--primary);
}

.schedule-results {
    margin-top: 24px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* Status Message */
.status-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.status-message.success {
    background: #dcfce7;
    color: #16a34a;
}

.status-message.error {
    background: #fee2e2;
    color: #dc2626;
}

/* Query Grid */
.query-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.query-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.query-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 24px;
}

.query-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.query-result {
    margin-top: 16px;
    text-align: left;
}



/* Announcements List */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.announcement-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.announcement-card .date {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.announcement-card .title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.announcement-card .content {
    font-size: 14px;
    color: var(--secondary);
    line-height: 1.6;
}

/* Full Width Button */
.full-width {
    width: 100%;
}

/* Dark Mode */
.dark-mode .tariff-card,
.dark-mode .schedule-card,
.dark-mode .query-card,
.dark-mode .announcement-card {
    background: #1e293b;
}

.dark-mode .empty-state {
    color: #94a3b8;
}

.dark-mode .status-message.success {
    background: rgba(34, 197, 94, 0.2);
}

.dark-mode .status-message.error {
    background: rgba(239, 68, 68, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .query-grid {
        grid-template-columns: 1fr;
    }



    .schedule-form {
        flex-direction: column;
    }
}

/* =====================================================
   SSS - ACCORDION STİLLERİ
   ===================================================== */

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-category {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.faq-category>h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    display: none;
    font-size: 14px;
    color: var(--secondary);
    line-height: 1.7;
    padding: 0 16px;
}

.faq-item.active .faq-answer {
    display: block;
    padding: 0 16px 16px;
}

/* Dark Mode */
.dark-mode .faq-category {
    background: #1e293b;
}

.dark-mode .faq-category>h3 {
    border-bottom-color: #334155;
}

.dark-mode .faq-item {
    border-bottom-color: #334155;
}

/* =====================================================
   PERMISSION GUIDE MODAL
   ===================================================== */

.permission-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.permission-guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.permission-guide-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.permission-guide-header {
    text-align: center;
    margin-bottom: 24px;
}

.permission-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 28px;
}

.permission-guide-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.permission-guide-header p {
    font-size: 14px;
    color: var(--secondary);
}

/* Browser Info Card */
.browser-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--light);
    border-radius: 12px;
    margin-bottom: 16px;
}

.browser-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.browser-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.browser-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.browser-version {
    font-size: 12px;
    color: var(--secondary);
}

.browser-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.browser-status.supported {
    background: #dcfce7;
    color: #16a34a;
}

.browser-status.limited {
    background: #fef3c7;
    color: #d97706;
}

.browser-status.unsupported {
    background: #fee2e2;
    color: #dc2626;
}

/* Upgrade Warning */
.upgrade-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fef3c7;
    border-radius: 12px;
    margin-bottom: 16px;
}

.upgrade-warning i {
    font-size: 20px;
    color: #d97706;
    margin-top: 2px;
}

.upgrade-warning strong {
    display: block;
    font-size: 14px;
    color: #92400e;
    margin-bottom: 4px;
}

.upgrade-warning p {
    font-size: 13px;
    color: #a16207;
    margin: 0;
}

/* PWA Install Guide */
.pwa-install-guide {
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #bae6fd;
}

.pwa-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pwa-header i {
    font-size: 20px;
    color: #0284c7;
}

.pwa-header strong {
    font-size: 15px;
    color: #0369a1;
}

.pwa-install-guide>p {
    font-size: 13px;
    color: #0c4a6e;
    margin-bottom: 12px;
}

.pwa-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pwa-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
}

.pwa-step-number {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.pwa-step-text {
    font-size: 13px;
    color: var(--dark);
}

.pwa-step-text i {
    color: var(--primary);
}

/* Permission Cards */
.permission-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.permission-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--light);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.permission-card.granted {
    border-color: #22c55e;
    background: #f0fdf4;
}

.permission-card.denied {
    border-color: #ef4444;
    background: #fef2f2;
}

.permission-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.permission-card-icon.location {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.permission-card-icon.notification {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.permission-card-info {
    flex: 1;
}

.permission-card-info strong {
    display: block;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 2px;
}

.permission-card-info p {
    font-size: 12px;
    color: var(--secondary);
    margin: 0;
}

.permission-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.permission-status.pending {
    background: #e2e8f0;
    color: #64748b;
}

.permission-status.granted {
    background: #dcfce7;
    color: #16a34a;
}

.permission-status.denied {
    background: #fee2e2;
    color: #dc2626;
}

/* Action Buttons */
.permission-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-request-permissions {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-request-permissions:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

.btn-skip-permissions {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-skip-permissions:hover {
    background: var(--light);
}

/* Permission Note */
.permission-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--secondary);
    text-align: center;
    justify-content: center;
}

.permission-note i {
    color: var(--primary);
}

/* Dark Mode */
.dark-mode .permission-guide-content {
    background: #1e293b;
}

.dark-mode .browser-info-card,
.dark-mode .permission-card {
    background: #334155;
}

.dark-mode .browser-icon {
    background: #475569;
}

.dark-mode .pwa-install-guide {
    background: linear-gradient(135deg, #1e3a5f 0%, #172554 100%);
    border-color: #1e3a8a;
}

.dark-mode .pwa-step {
    background: #334155;
}

/* Responsive */
@media (max-width: 480px) {
    .permission-guide-content {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .permission-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .permission-guide-header h2 {
        font-size: 20px;
    }
}

/* =====================================================
   NEARBY STOPS MODAL
   ===================================================== */

.nearby-stops-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99998;
    display: none;
}

.nearby-stops-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.nearby-stops-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUpModal 0.3s ease;
}

@keyframes slideUpModal {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.nearby-stops-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.nearby-stops-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nearby-stops-header h3 i {
    color: var(--primary);
}

.nearby-stops-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: var(--transition);
}

.nearby-stops-close:hover {
    background: var(--danger);
    color: white;
}

.nearby-stops-list {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nearby-stop-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--light);
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.nearby-stop-item:hover {
    border-color: var(--primary);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stop-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.stop-info {
    flex: 1;
    min-width: 0;
}

.stop-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stop-lines {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.stop-line-badge {
    padding: 3px 8px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.stop-distance {
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
    white-space: nowrap;
}

/* Dark Mode */
.dark-mode .nearby-stops-content {
    background: #1e293b;
}

.dark-mode .nearby-stop-item {
    background: #334155;
}

.dark-mode .nearby-stop-item:hover {
    background: #475569;
}

/* =====================================================
   HAT DETAY - İYİLEŞTİRİLMİŞ ARAÇ VE DURAK LİSTESİ
   ===================================================== */

/* Araç kartları - Profesyonel görünüm */
.vehicle-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.vehicle-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.vehicle-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.vehicle-icon.moving {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.vehicle-icon.slow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.vehicle-icon.stopped {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.vehicle-info {
    flex: 1;
    min-width: 0;
}

.vehicle-plate {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.vehicle-direction {
    font-size: 13px;
    color: var(--secondary);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vehicle-direction i {
    font-size: 10px;
}

.vehicle-speed {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--light);
}

.vehicle-speed.fast {
    color: #16a34a;
}

.vehicle-speed.medium {
    color: #d97706;
}

.vehicle-speed.slow {
    color: #dc2626;
}

/* Durak kartları - Profesyonel görünüm */
.stop-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.stop-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stop-item::before {
    content: '';
    position: absolute;
    left: 37px;
    top: 100%;
    width: 2px;
    height: 10px;
    background: var(--border);
}

.stop-item:last-child::before {
    display: none;
}

.stop-marker,
.stop-number {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    border: 3px solid var(--primary-light);
}

.stop-item.passed .stop-marker,
.stop-item.passed .stop-number {
    background: var(--success);
    border-color: #86efac;
}

.stop-item.current .stop-marker,
.stop-item.current .stop-number {
    background: var(--warning);
    border-color: #fcd34d;
    animation: pulse 1.5s infinite;
}

.stop-item.upcoming .stop-marker,
.stop-item.upcoming .stop-number {
    background: var(--secondary);
    border-color: #cbd5e1;
}

.stop-details {
    flex: 1;
}

.stop-name-main,
.stop-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.stop-eta {
    font-size: 13px;
    color: var(--secondary);
    margin-top: 4px;
}

.stop-eta.arriving {
    color: var(--success);
    font-weight: 600;
}

.stop-eta-badge {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    padding: 6px 12px;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 20px;
}

/* Dark Mode */
.dark-mode .vehicle-item,
.dark-mode .stop-item {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .vehicle-item:hover,
.dark-mode .stop-item:hover {
    border-color: var(--primary);
}

.dark-mode .vehicle-speed {
    background: #334155;
}

/* =====================================================
   DIRECTION TOGGLE - TÜM/GİDİŞ/DÖNÜŞ BUTONLARI
   ===================================================== */

/* Yakın Duraklar Butonu - Mavi Renk */
.btn-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    /* Yeşil yerine Mavi */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    /* Mavi gölge */
    transition: var(--transition);
}

.btn-location:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}



/* =====================================================
   SSS (Faq) STİLLERİ
   ===================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 30px;
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-category h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light);
}

.faq-item {
    border-bottom: 1px solid #f1f5f9;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 16px 0;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    transition: color 0.2s;
}

.faq-question::after {
    content: '\f078';
    /* fa-chevron-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-light);
    transition: transform 0.3s;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    display: none;
    padding-bottom: 16px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Direction Toggle Fix */
.direction-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 4px;
    width: auto;
    background: var(--white);
    padding: 4px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    /* Dikey uzamayı engelle */
    align-items: center;
    height: auto;
}

.dir-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    /* Yükseklik sabitleme */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.dir-btn:hover {
    background: var(--light);
    color: var(--dark);
}

.dir-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.3);
}

/* Mobil uyumluluğu */
@media (max-width: 768px) {
    .direction-toggle {
        position: absolute;
        top: auto;
        bottom: 10px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .dir-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* Dark Mode */
.dark-mode .direction-toggle {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dark-mode .dir-btn {
    color: #94a3b8;
}

.dark-mode .dir-btn:hover {
    background: #334155;
    color: #e2e8f0;
}

.dark-mode .dir-btn.active {
    background: var(--primary);
    color: white;
}

/* =========================================
   Satış Noktaları (POS) Layout - Final
   ========================================= */
.pos-layout {
    display: flex;
    height: calc(100vh - 140px);
    gap: 20px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.pos-sidebar {
    width: 350px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: var(--light-bg);
}

.pos-search {
    padding: 15px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.pos-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.pos-item {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    /* vehicle-item benzeri stil */
    display: flex;
    align-items: center;
    gap: 15px;
}

.pos-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pos-item.active {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* App.js içindeki inline stilleri desteklemek için */
.pos-item .vehicle-info {
    flex: 1;
}

.pos-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-pos-nav {
    flex: 1;
    padding: 8px;
    background: var(--light);
    color: var(--primary);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-pos-nav:hover {
    background: var(--primary);
    color: white;
}

.pos-map-area {
    flex: 1;
    position: relative;
    background: #f1f5f9;
}

.pos-map {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .pos-layout {
        flex-direction: column;
        height: auto;
        min-height: 80vh;
    }

    .pos-sidebar {
        width: 100%;
        height: auto;
        min-height: 250px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .pos-map-area {
        height: 350px;
    }
}

/* Sidebar Overlay Fix */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===========================================
   LEAFLET LAYER CONTROL (Harita Katman Seçimi)
   =========================================== */
.leaflet-control-layers {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-md) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-control-layers-toggle {
    width: 36px !important;
    height: 36px !important;
    background-size: 20px 20px !important;
    background-position: center !important;
    border-radius: var(--radius) !important;
}

.leaflet-control-layers-expanded {
    padding: 10px 14px !important;
    min-width: 120px;
}

.leaflet-control-layers-list {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
}

.leaflet-control-layers-base label {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.leaflet-control-layers-base label:hover {
    background: var(--light);
}

.leaflet-control-layers-selector {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    margin: 0 !important;
}

body.dark-mode .leaflet-control-layers {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .leaflet-control-layers-base label:hover {
    background: #334155;
}

body.dark-mode .leaflet-control-layers-toggle {
    filter: invert(1) brightness(0.9);
}

/* =====================================================
   TÜM OTOBÜSLER - FİLTRE BAR STİLLERİ
   ===================================================== */

.all-vehicles-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--light);
    color: var(--dark);
    transition: var(--transition);
    min-width: 140px;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.filter-status-group {
    flex-grow: 1;
}

.filter-status-buttons {
    display: flex;
    gap: 4px;
}

.status-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--light);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.status-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.status-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.status-btn[data-status="moving"].active {
    background: var(--success);
    border-color: var(--success);
}

.status-btn[data-status="stopped"].active {
    background: var(--danger);
    border-color: var(--danger);
}

.btn-filter-clear {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--light);
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-filter-clear:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--white);
}

.stat-box.filtered {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.stat-box.filtered i {
    color: rgba(255, 255, 255, 0.8);
}

/* Dark mode */
.dark-mode .all-vehicles-filter-bar {
    background: #1e293b;
}

.dark-mode .filter-select,
.dark-mode .filter-input {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.dark-mode .status-btn {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

.dark-mode .btn-filter-clear {
    background: #0f172a;
    border-color: #334155;
}

/* Responsive */
@media (max-width: 768px) {
    .all-vehicles-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select,
    .filter-input {
        width: 100%;
        min-width: unset;
    }

    .filter-status-buttons {
        width: 100%;
    }

    .status-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 12px;
    }

    .status-btn span {
        display: none;
    }

    .btn-filter-clear {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .btn-filter-clear::after {
        content: 'Temizle';
    }
}

/* =====================================================
   TABLET ÖZELLEŞTİRMESİ (768px - 1024px)
   Tüm tabletlerde düzgün çalışması için
   ===================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    /* Hero Stats - Çakışmayı önle */
    .hero-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    .hero-stat {
        min-width: 80px;
        flex: 0 0 auto;
    }

    .hero-stat strong {
        font-size: 22px;
    }

    /* Hat Detay Sayfası - Panel aşağıdan gelsin */
    #page-hat-detay {
        flex-direction: column !important;
    }

    #page-hat-detay .map-area {
        flex: 1;
        height: calc(100vh - 300px);
        min-height: 350px;
    }

    #page-hat-detay .bottom-sheet {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        max-height: 50vh;
        height: auto;
        min-height: 200px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }

    #page-hat-detay .bottom-sheet.expanded {
        max-height: 70vh;
    }

    #page-hat-detay .sheet-handle {
        display: block !important;
    }

    /* Mobil header'ı tablet'te de göster */
    .line-detail-header-mobile {
        display: flex !important;
    }

    /* Sidebar davranışı - tablet'te mobil gibi gizle */
    .sidebar {
        position: fixed !important;
        left: 0;
        top: 0;
        width: var(--sidebar-width, 280px);
        height: 100vh;
        transform: translateX(-100%) !important;
        z-index: 10001;
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0) !important;
    }

    /* Ana içerik tam genişlik */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Sidebar toggle butonu göster */
    .sidebar-toggle,
    #sidebarOpen {
        display: flex !important;
    }

    /* Grid düzeni tablet için */
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lines-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Features grid tablet */
    .features-grid-compact {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Bottom Navigation - Tablet'te de göster (buzlu cam efekti) */
    .bottom-nav {
        display: flex !important;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 12px 20px 28px 20px;
        border-top: 1px solid rgba(226, 232, 240, 0.8);
    }

    .dark-mode .bottom-nav {
        background: rgba(15, 23, 42, 0.9);
        border-top-color: rgba(51, 65, 85, 0.8);
    }

    /* Ana içerik - bottom nav için padding */
    .main-content {
        padding-bottom: 90px !important;
    }

    /* Page container da padding ekle */
    .page-container {
        padding-bottom: 20px;
    }
}

/* =====================================================
   PWA STANDALONE MODE - TABLET ÖZELLEŞTİRMESİ
   Ana ekrana eklenen uygulamalar için
   ===================================================== */

@media (display-mode: standalone) and (min-width: 768px) and (max-width: 1024px) {
    /* PWA modunda tablet için ek düzeltmeler */

    /* Safe area padding (notch vb. için) */
    .page-container {
        padding-left: env(safe-area-inset-left, 16px);
        padding-right: env(safe-area-inset-right, 16px);
    }

    /* Bottom sheet safe area */
    .bottom-sheet {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    /* Header safe area */
    .top-header {
        padding-top: env(safe-area-inset-top, 0);
    }

    /* PWA'da bottom-sheet her zaman aşağıdan */
    #page-hat-detay .bottom-sheet {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 55vh;
    }
}

/* =====================================================
   ARAÇ BİLDİRİM MARKER DÜZELTMELERİ
   Haritada otobüs bildirimleri için
   ===================================================== */

/* ETA badge'inin marker üstüne çıkmaması için */
.leaflet-marker-icon .vehicle-popup,
.leaflet-popup-content .eta-badge,
.vehicle-eta-overlay {
    z-index: 400 !important;
}

/* Bildirim marker'ı için pulse efekti */
.arriving-vehicle-marker {
    position: relative;
}

.arriving-vehicle-marker::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid var(--success);
    border-radius: 50%;
    animation: arriving-pulse 1.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes arriving-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.15);
    }
}

/* Harita üzerinde ETA popup'ı düzeltmesi */
.leaflet-popup-content .stop-eta-badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Marker çakışmasını önle */
.leaflet-marker-pane .vehicle-marker {
    z-index: 500 !important;
}

.leaflet-marker-pane .stop-marker {
    z-index: 400 !important;
}

/* Bildirim geldiğinde marker vurgusu */
.vehicle-marker.notifying {
    filter: drop-shadow(0 0 8px var(--success));
}

/* =====================================================
   ONBOARDING MODAL - KULLANICI TANITIM SİSTEMİ
   ===================================================== */

.onboarding-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Tema ile uyumlu - hero-banner gradyanı ile aynı */
    background: linear-gradient(135deg, var(--primary, #1e40af) 0%, var(--primary-dark, #1e3a8a) 50%, #0f172a 100%);
}

.onboarding-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 20px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: onboardingSlideUp 0.5s ease;
}

@keyframes onboardingSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Progress Bar */
.onboarding-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0;
}

.progress-dots {
    display: flex;
    gap: 8px;
}

.progress-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.progress-dots .dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}

.progress-dots .dot.completed {
    background: var(--success);
}

.btn-skip-onboarding {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-skip-onboarding:hover {
    background: #f1f5f9;
    color: #64748b;
}

/* Steps */
.onboarding-step {
    display: none;
    padding: 30px;
    text-align: center;
    animation: stepFadeIn 0.4s ease;
}

.onboarding-step.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step Icons */
.step-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 42px;
}

.step-icon.welcome {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.step-icon.location {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.step-icon.notification {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.step-icon.pwa {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.step-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Typography */
.onboarding-step h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.onboarding-step p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Features Mini Grid */
.step-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.feature-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 12px;
    color: #64748b;
}

.feature-mini i {
    font-size: 20px;
    color: var(--primary);
}

/* Permission Benefits */
.permission-benefit {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #334155;
}

.benefit-item i {
    color: var(--success);
    font-size: 16px;
}

/* Permission Status */
.perm-status {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.perm-status.granted {
    display: block;
    background: #dcfce7;
    color: #166534;
}

.perm-status.denied {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

/* Buttons */
.btn-onboarding-next,
.btn-onboarding-action,
.btn-onboarding-finish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-onboarding-next {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-onboarding-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-onboarding-action {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-onboarding-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-onboarding-finish {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.btn-onboarding-finish:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.btn-onboarding-skip-step {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-onboarding-skip-step:hover {
    color: #64748b;
}

/* PWA Install Steps */
.pwa-install-steps {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.pwa-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.pwa-step:last-child {
    border-bottom: none;
}

.pwa-step-number {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.pwa-step-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

/* Final Summary */
.final-summary {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #334155;
}

.summary-item-status {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.summary-item-status.granted {
    background: #dcfce7;
    color: #166534;
}

.summary-item-status.denied {
    background: #fee2e2;
    color: #991b1b;
}

.summary-item-status.pending {
    background: #fef3c7;
    color: #92400e;
}

/* Dark Mode */
.dark-mode .onboarding-container {
    background: #1e293b;
}

.dark-mode .onboarding-step h2 {
    color: #f1f5f9;
}

.dark-mode .onboarding-step p {
    color: #94a3b8;
}

.dark-mode .feature-mini,
.dark-mode .permission-benefit,
.dark-mode .pwa-install-steps,
.dark-mode .final-summary {
    background: #334155;
}

.dark-mode .feature-mini,
.dark-mode .benefit-item,
.dark-mode .pwa-step-text,
.dark-mode .summary-item-label {
    color: #e2e8f0;
}

.dark-mode .progress-dots .dot {
    background: #475569;
}

.dark-mode .btn-skip-onboarding:hover {
    background: #334155;
}

/* Responsive */
@media (max-width: 480px) {
    .onboarding-container {
        margin: 10px;
        border-radius: 20px;
    }

    .onboarding-step {
        padding: 24px 20px;
    }

    .step-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .onboarding-step h2 {
        font-size: 20px;
    }

    .step-features {
        flex-wrap: wrap;
        gap: 10px;
    }

    .feature-mini {
        flex: 1 1 calc(33% - 10px);
        min-width: 80px;
    }
}

/* =====================================================
   ALARM SİSTEMİ STİLLERİ
   ===================================================== */

.alarm-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alarm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.alarm-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.alarm-info {
    flex: 1;
}

.alarm-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.alarm-expires {
    font-size: 12px;
    color: var(--secondary);
}

.btn-alarm-delete {
    width: 32px;
    height: 32px;
    border: none;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-alarm-delete:hover {
    background: #fecaca;
}

/* Durak popup'ında alarm butonu */
.btn-set-alarm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-set-alarm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.dark-mode .alarm-item {
    background: #334155;
    border-color: #475569;
}

.dark-mode .alarm-name {
    color: #f1f5f9;
}

/* =====================================================
   SATIŞ NOKTALARI STİLLERİ
   ===================================================== */

.pos-layout {
    display: flex;
    gap: 20px;
    height: calc(100vh - 200px);
    min-height: 400px;
}

.pos-sidebar {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pos-search .form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 14px;
}

.pos-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pos-map-area {
    flex: 1;
    min-height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.pos-map {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #e5e7eb;
    border-radius: 16px;
}

.pos-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.pos-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.pos-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.pos-info {
    flex: 1;
}

.pos-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
    margin-bottom: 4px;
}

.pos-address,
.pos-phone {
    font-size: 12px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pos-address i,
.pos-phone i {
    font-size: 10px;
    opacity: 0.7;
}

.pos-marker-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Dark Mode */
.dark-mode .pos-item {
    background: #334155;
    border-color: #475569;
}

.dark-mode .pos-item:hover {
    background: #3f4f63;
}

.dark-mode .pos-name {
    color: #f1f5f9;
}

/* Mobile */
@media (max-width: 768px) {
    .pos-layout {
        flex-direction: column;
        height: auto;
    }

    .pos-sidebar {
        width: 100%;
        order: 2;
    }

    .pos-map-area {
        order: 1;
        height: 250px;
        min-height: 250px;
    }

    .pos-list {
        max-height: 300px;
    }
}