body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.login-container {
    /* Updated card styling to match dashboard */
    background: #1a1a1a;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 420px;
    padding: 3rem 2.5rem;
    animation: fadeIn 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-circle {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

/* Added PNG logo support */
.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.logo-circle svg {
    width: 40px;
    height: 40px;
    fill: white;
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
    /* Updated text color for dark theme */
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    /* Updated subtitle color */
    color: #9ca3af;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.input-wrapper {
    position: relative;
}

input {
    width: 100%;
    padding: 0.875rem 1rem;
    /* Updated input styling for dark theme */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: #0a0a0a;
    color: #ffffff;
}

input:focus {
    outline: none;
    /* Updated focus color to blue accent */
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input::placeholder {
    color: #6b7280;
}

.forgot-password {
    text-align: right;
    margin-top: 0.5rem;
}

.forgot-password a {
    /* Updated link color to blue accent */
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #60a5fa;
}

.btn {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.btn-primary {
    /* Updated button to blue gradient matching dashboard */
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    /* Updated divider color */
    color: #6b7280;
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    /* Updated divider line color */
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 1rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    flex: 1;
    padding: 0.75rem;
    /* Updated social button styling */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: #0a0a0a;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #d1d5db;
}

.btn-social:hover {
    border-color: #3b82f6;
    background: #1a1a1a;
    transform: translateY(-2px);
}

.btn-social svg {
    width: 20px;
    height: 20px;
}

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    /* Updated text color */
    color: #9ca3af;
    font-size: 0.9375rem;
}

.signup-link a {
    /* Updated link color */
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #60a5fa;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    /* Updated checkbox styling */
    accent-color: #3b82f6;
}

.checkbox-wrapper label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.875rem;
    color: #d1d5db;
}

@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .social-buttons {
        flex-direction: column;
    }
}
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #94a3b8;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #cbd5e1;
}

*::-webkit-scrollbar-thumb {
    background-color: #94a3b8;
    border-radius: 4px;
}

#map {
    width: 100%;
    height: 600px;
    min-height: 240px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.map-resize-handle {
    width: 100%;
    height: 10px;
    cursor: ns-resize;
    background: rgba(148, 163, 184, 0.35);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    position: relative;
    z-index: 2;
}

.map-resize-handle:hover {
    background: rgba(148, 163, 184, 0.55);
}

.map-resize-handle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 3px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(71, 85, 105, 0.8);
}

.leaflet-popup-content-wrapper {
    background: #1a1a1a;
    border-radius: 8px;
}

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

.leaflet-popup-tip {
    background: #1a1a1a;
}

.popup-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.popup-status {
    font-size: 12px;
    color: #a3a3a3;
}

.popup-status.active {
    color: #10b981;
}

.permission-category {
    background-color: #1a1d23;
    border: 1px solid #2a2d35;
    border-radius: 12px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.category-title h2 {
    font-size: 18px;
    font-weight: 600;
}

.category-badge {
    background-color: #4a8fd9;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.toggle-all-btn {
    background-color: transparent;
    color: #4a8fd9;
    border: 1px solid #4a8fd9;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-all-btn:hover {
    background-color: #4a8fd9;
    color: #ffffff;
}

.permissions-list {
    display: grid;
    gap: 12px;
}

.input-bosluk {
	padding: 5px;
}

.permission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    padding: 5px;
}

.permission-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.permission-name {
    font-size: 14px;
    font-weight: 500;
}

.permission-desc {
    color: #6b7280;
    font-size: 12px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    top: 4px;
    width: 48px;
    height: 26px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #374151;
    transition: .3s;
    border-radius: 26px;
}

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

input:checked + .slider {
    background-color: #4a8fd9;
}

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

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #4a8fd9;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #3d7ec4;
}

.btn-secondary {
    background-color: transparent;
    color: #9ca3af;
    border: 1px solid #374151;
}

.btn-secondary:hover {
    background-color: #1f2228;
    color: #ffffff;
}

.category-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.category-header:hover {
    opacity: 0.9;
}

.chevron-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.chevron-icon.rotate {
    transform: rotate(-180deg);
}

.permissions-list {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease-out, 
                transform 0.3s ease-out,
                padding 0.3s ease-out;
    padding: 0;
}

.permissions-list.open {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
    padding: 1rem;
}

.category-title {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.category-banner {
    width: 100%;
    height: auto;
    display: block;
    max-height: 85px;
    object-fit: cover;
}

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

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.badge-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.badge-active {
    position: relative;
    transition: all 0.2s ease;
}

.badge-active:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 0.4; }
}

.package-icon {
    flex-shrink: 0;
}

/* Yumuşak geçiş animasyonları eklendi */
.update-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes fadeNumber {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.number-update {
    animation: fadeNumber 0.4s ease-in-out;
}

@keyframes highlightPulse {
    0% { background-color: transparent; }
    50% { background-color: rgba(59, 130, 246, 0.1); }
    100% { background-color: transparent; }
}

.row-update {
    animation: highlightPulse 0.6s ease-in-out;
}

.smooth-transition {
    transition: all 0.3s ease-in-out;
}

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

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding-right: 5px;
}

/* Hide scrollbar but keep functionality */
.notification-container::-webkit-scrollbar {
    width: 4px;
}

.notification-container::-webkit-scrollbar-track {
    background: transparent;
}

.notification-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Notification Card */
.notification {
    width: 380px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: top right;
}

.notification.removing {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

/* Header */
.notification-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.notification-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.notification-title h3 {
    font-size: 16px;
    font-weight: 600;
}

.close-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.close-btn svg {
    width: 14px;
    height: 14px;
    stroke: white;
    stroke-width: 2.5;
}

/* Body */
.notification-body {
    padding: 20px;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.order-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
    min-width: 100px;
}

.order-label svg {
    width: 16px;
    height: 16px;
    stroke: #9ca3af;
}

.order-value {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.order-id {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    font-weight: 700;
}

.order-amount {
    color: #10b981;
    font-size: 18px;
}

/* Footer */
.notification-footer {
    padding: 12px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-time {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-time svg {
    width: 14px;
    height: 14px;
    stroke: #9ca3af;
}

.view-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Demo Button */
.demo-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px;
}

.demo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.demo-title {
    color: white;
    margin: 20px;
    font-size: 24px;
}

/* Badge for notification count */
.notification-badge {
    position: fixed;
    top: 20px;
    right: 420px;
    background: #ef4444;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    z-index: 10000;
    animation: badgePop 0.3s ease;
    display: none;
}

.notification-badge.show {
    display: flex;
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    min-width: 900px;
}
.orders-table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 10;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.orders-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}
.orders-table tbody tr:hover {
    background-color: #f8fafc;
}
.orders-table tbody tr[data-order-row] {
    display: table-row;
}
.orders-table tbody tr[data-order-row].hidden-row {
    display: none;
}
.orders-table td, .orders-table th {
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}
.badge-restaurant {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

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

/* Mobil sidebar stilleri */
@media (max-width: 1024px) {
    .courier-sidebar {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 320px;
        max-width: 100vw;
        z-index: 50;
        transition: right 0.3s ease;
    }
    .courier-sidebar.open {
        right: 0;
    }
}

/* Mobil tab scroll */
.tabs-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tabs-container::-webkit-scrollbar {
    display: none;
}