/* T15 Gateway - Ana Stil Dosyası */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    --danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    --warning-gradient: linear-gradient(135deg, #ffd43b 0%, #fcc419 100%);
    --info-gradient: linear-gradient(135deg, #74c0fc 0%, #4dabf7 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-shadow: 0 10px 30px rgba(0,0,0,0.2);
    --border-radius: 15px;
    --border-radius-sm: 10px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* Navbar Stilleri */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    border-radius: 8px;
    margin: 0 2px;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea !important;
}

.nav-link.active {
    background: var(--primary-gradient);
    color: white !important;
}

/* Mobile Alt Menü */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-bottom-nav a {
    color: #6c757d;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-bottom-nav a:hover,
.mobile-bottom-nav a.active {
    color: #667eea;
}

/* Dropdown Stilleri */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 16px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .navbar-brand span {
        display: none;
    }
    
    .navbar-text {
        display: none;
    }
    
    .main-container {
        margin-top: 0;
        padding-top: 0;
    }
    
    /* Mobilde harita üstte, daha fazla alan - cihazlar otomatik haritada görünsün */
    .map-container {
        height: 55vh;
        min-height: 280px;
        order: 1;
    }
    
    .sidebar {
        height: auto;
        max-height: 45vh;
        overflow-y: auto;
        order: 2;
    }
    
    .main-container .row {
        display: flex;
        flex-direction: column;
    }
}

/* Harita Marker Stilleri */
.custom-marker {
    background: transparent;
    border: none;
}

.custom-marker div {
    transition: all 0.3s ease;
}

.custom-marker:hover div {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Harita Marker Stilleri */
.custom-marker {
    background: transparent;
    border: none;
}

.custom-marker div {
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-marker div:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4) !important;
}

/* Popup Stilleri */
.leaflet-popup-content {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.leaflet-popup-content h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.leaflet-popup-content table {
    margin-bottom: 10px;
}

.leaflet-popup-content td {
    padding: 2px 4px;
    vertical-align: top;
}

.leaflet-popup-content .badge {
    font-size: 11px;
    padding: 2px 6px;
}

/* Tailwind CSS Utility Classes */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-6, .col-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (max-width: 768px) {
    .col-md-3, .col-md-4, .col-md-6, .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Bootstrap-like Components with Tailwind */
.navbar {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.navbar-brand {
    font-weight: 700;
    color: #667eea !important;
    text-decoration: none;
    font-size: 1.25rem;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-nav .nav-link {
    color: #555;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    transition: var(--transition);
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--primary-gradient);
    color: white !important;
    transform: translateY(-1px);
}

.navbar-text {
    color: #6c757d;
    margin-right: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary-gradient);
    color: white;
}

.btn-primary { background: var(--primary-gradient); color: white; }
.btn-success { background: var(--success-gradient); color: white; }
.btn-danger { background: var(--danger-gradient); color: white; }
.btn-warning { background: var(--warning-gradient); color: #333; }
.btn-info { background: var(--info-gradient); color: white; }

.btn-outline-primary {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline-success {
    background: transparent;
    border: 2px solid #28a745;
    color: #28a745;
}

.btn-outline-danger {
    background: transparent;
    border: 2px solid #dc3545;
    color: #dc3545;
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
}

.btn-outline-info {
    background: transparent;
    border: 2px solid #17a2b8;
    color: #17a2b8;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    border: none;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.card-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.card-body {
    padding: 1rem;
}

.card-title {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    background: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    z-index: 1;
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-select:hover {
    border-color: #adb5bd;
}

.form-select:active {
    border-color: #667eea;
}

/* Select option styles */
.form-select option {
    padding: 8px 12px;
    background-color: #fff;
    color: #212529;
}

.form-select option:hover {
    background-color: #f8f9fa;
}

.form-select option:checked {
    background-color: #e9ecef;
    color: #212529;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-floating {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-floating .form-control {
    height: 60px;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: #6c757d;
    font-weight: 500;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
}

.modal-dialog.modal-lg {
    max-width: 800px;
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    border: none;
    outline: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border: none;
}

.modal-title {
    margin: 0;
    font-weight: 600;
}

.modal-body {
    position: relative;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    gap: 0.5rem;
}

.btn-close {
    background: transparent;
    border: 0;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    opacity: 0.75;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: var(--border-radius-sm);
    position: relative;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-dismissible {
    padding-right: 3rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.bg-success { background-color: #28a745 !important; color: white; }
.bg-danger { background-color: #dc3545 !important; color: white; }
.bg-warning { background-color: #ffc107 !important; color: #333; }
.bg-info { background-color: #17a2b8 !important; color: white; }
.bg-secondary { background-color: #6c757d !important; color: white; }

.text-center { text-align: center; }
.text-end { text-align: right; }
.text-muted { color: #6c757d !important; }
.text-success { color: #28a745 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #ffc107 !important; }
.text-info { color: #17a2b8 !important; }

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }

.ms-auto { margin-left: auto; }

.p-3 { padding: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.w-100 { width: 100%; }

.h-100 { height: 100%; }

.border-0 { border: 0; }
.border-bottom { border-bottom: 1px solid #dee2e6; }

.position-relative { position: relative; }
.position-fixed { position: fixed; }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: white;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.dropdown-item:hover {
    color: #1e2125;
    background-color: #e9ecef;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.375rem 0 0 0.375rem;
}

.input-group .form-control {
    border-radius: 0 0.375rem 0.375rem 0;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.125rem;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    margin-right: 0.5rem;
    background-color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    appearance: none;
    color-adjust: exact;
}

.form-check-input[type="checkbox"] {
    border-radius: 0.25em;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-label {
    margin-bottom: 0;
    cursor: pointer;
}

.form-switch {
    padding-left: 2.5em;
}

.form-switch .form-check-input {
    width: 2em;
    margin-left: -2.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    transition: background-position 0.15s ease-in-out;
}

.form-switch .form-check-input:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.btn-group {
    display: inline-flex;
    vertical-align: middle;
}

.btn-group .btn {
    position: relative;
    flex: 1 1 auto;
}

.btn-group .btn:not(:first-child) {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group .btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.d-grid {
    display: grid;
}

.d-none { display: none; }
.d-block { display: block; }

.fade {
    transition: opacity 0.15s linear;
}

.fade.show {
    opacity: 1;
}

.show {
    display: block !important;
}

/* JavaScript Modal Support */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}



/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.navbar-brand {
    font-weight: 700;
    color: #667eea !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #555 !important;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
    margin: 0 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--primary-gradient);
    color: white !important;
    transform: translateY(-1px);
}

/* Container Styles */
.main-container {
    padding: 20px;
    min-height: calc(100vh - 80px);
}

/* Card Styles */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    border: none;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.card-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    border: none;
    font-weight: 600;
}

/* Button Styles */
.btn {
    border-radius: var(--border-radius-lg);
    padding: 10px 25px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-success {
    background: var(--success-gradient);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 207, 102, 0.4);
    color: white;
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    color: white;
}

.btn-warning {
    background: var(--warning-gradient);
    color: #333;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.4);
    color: #333;
}

.btn-info {
    background: var(--info-gradient);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(116, 192, 252, 0.4);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    background: transparent;
}

.btn-outline-success:hover {
    background: var(--success-gradient);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger-gradient);
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 15px;
    font-size: 0.875rem;
}

/* Form Styles */
.form-control {
    border-radius: var(--border-radius-sm);
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating .form-control {
    height: 60px;
}

.form-floating label {
    color: #6c757d;
    font-weight: 500;
}

/* Login Page Styles */
.login-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.login-header h2 {
    color: #333;
    font-weight: 600;
}

.btn-login {
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 12px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Map Container */
.map-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    height: 100%;
}

#map {
    height: 100%;
    width: 100%;
}

/* Sidebar */
.sidebar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

/* Device Card */
.device-card {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    cursor: pointer;
    border-left: 4px solid #dee2e6;
}

.device-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.device-card.online {
    border-left-color: #28a745;
}

.device-card.offline {
    border-left-color: #dc3545;
}

.device-card.authorized {
    border-left-color: #28a745;
}

.device-card.not-authorized {
    border-left-color: #dc3545;
}

/* Status Indicators */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-online {
    background-color: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.status-offline {
    background-color: #dc3545;
}

/* Stats Cards */
.stats-card {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Modal Styles */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--glass-shadow);
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner-border {
    color: #667eea;
}

/* Queue Stats */
.queue-stat {
    padding: 5px;
    text-align: center;
}

.queue-number {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.queue-label {
    font-size: 0.7rem;
    color: #6c757d;
}

/* User Card */
.user-card {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Role Badges */
.role-badge {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

.role-admin {
    background: var(--danger-gradient);
    color: white;
}

.role-user {
    background: var(--success-gradient);
    color: white;
}

/* Command History */
.command-history {
    max-height: 400px;
    overflow-y: auto;
    border-radius: var(--border-radius-sm);
}

/* Device Select */
.device-select {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    padding: 10px;
    transition: var(--transition);
}

.device-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius-sm);
    border: none;
    margin-top: 20px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Status Badge */
.status-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

/* Authorization Toggle */
.authorization-toggle {
    cursor: pointer;
    transition: var(--transition);
}

.authorization-toggle:hover {
    transform: scale(1.1);
}

/* Loading Spinner */
.loading-spinner {
    display: none;
}

.loading .loading-spinner {
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 10px;
    }

    .sidebar {
        margin-top: 20px;
        height: auto;
        max-height: 400px;
    }

    .stats-card {
        margin-bottom: 15px;
    }

    .login-container {
        margin: 20px;
        padding: 30px 20px;
    }

    .navbar-nav {
        margin-top: 10px;
    }

    .navbar-nav .nav-link {
        margin: 2px 0;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Dokunma hedefleri masaüstü boyutlarında çok küçük kalıyordu (ör. btn-sm
       ~28px yüksekliğinde) - mobilde parmakla basılabilir olmaları için büyütüldü */
    .btn {
        min-height: 44px;
        padding: 0.6rem 1.1rem;
        font-size: 1rem;
    }

    .btn-sm {
        min-height: 40px;
        padding: 0.5rem 0.9rem;
        font-size: 0.95rem;
    }

    .navbar-toggler {
        padding: 0.5rem 0.75rem;
    }

    .dropdown-item {
        padding: 0.65rem 1rem;
        font-size: 1rem;
    }

    .badge {
        font-size: 0.8rem;
        padding: 0.4em 0.6em;
    }

    .queue-label {
        font-size: 0.75rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.shadow-custom {
    box-shadow: var(--glass-shadow);
}

.border-radius-custom {
    border-radius: var(--border-radius);
}

.transition-custom {
    transition: var(--transition);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.device-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Tailwind CSS Overrides and Enhancements */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.hover\:scale-\[1\.02\]:hover {
    transform: scale(1.02);
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:shadow-3xl:hover {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Button Styles */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Enhanced Card Hover Effects */
.card {
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Salt dekoratif bir hover parlaması - pointer-events olmadan opacity:0 olsa bile
       tıklamaları kendine çekip kartın içindeki her şeyi (butonlar, sekmeler, linkler)
       tıklanamaz hale getiriyordu (bkz. profile.html'deki sekme/kart tıklama sorunu) */
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

/* Glass Morphism Enhancement */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Loading Animation Enhancement */
.loading {
    position: relative;
}

.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Form Controls */
.form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

/* Enhanced Navigation */
.navbar-nav .nav-link {
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Login Page Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    margin-bottom: 30px;
}

.login-header h2 {
    margin: 10px 0;
}

.login-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.btn-login {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-login .loading {
    display: none;
}

.btn-login:disabled .normal-text {
    display: none;
}

.btn-login:disabled .loading {
    display: inline-block;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .sidebar {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Konum Bilgileri Stilleri */
.location-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    border-left: 3px solid #667eea;
}

.location-info p {
    margin-bottom: 5px;
}

.location-info .small {
    font-size: 0.85rem;
}

.location-history {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.location-history .border-bottom {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.location-history .border-bottom:last-child {
    border-bottom: none !important;
}

.location-history::-webkit-scrollbar {
    width: 6px;
}

.location-history::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.location-history::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

.location-history::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* Geçici Konum Marker Stili */
.temp-location-marker {
    background: transparent;
    border: none;
}

.temp-location-marker i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Rota Animasyon Stilleri */
.route-start-marker i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: pulse-green 2s infinite;
}

.route-end-marker i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: pulse-red 2s infinite;
}

.route-moving-marker i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: bounce 1s infinite;
}

.route-point-marker i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse-blue {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Rota çizgisi animasyonu */
.route-path {
    stroke-dasharray: 10;
    animation: dash 2s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -20;
    }
}
