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

body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: #f0f0f0;
}

header {
    background: linear-gradient(145deg, #f0f0f0, #e6e6e6);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    position: relative;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: rgba(0,0,0,0.05);
    color: #000;
}

.container {
    display: grid;
    grid-template-columns: 0.6fr 1.6fr 1.6fr;
    gap: 20px;
    height: calc(100vh - 120px);
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.customers-container {
    flex: 0.6;
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.customers-list {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.customers-list.drag-over {
    background: #e3f2fd;
    border: 2px dashed #2196F3;
    border-radius: 4px;
}

.customer-card {
    background: white;
    padding: 0.4rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: move;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    border: 1px solid transparent;
    font-size: 0.75rem;
    width: 100%;
    min-height: 80px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.customer-card:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    border-color: #e0e0e0;
}

.customer-card.dragging {
    opacity: 0.8;
    z-index: 100;
    background: #f0f8ff;
    border: 2px dashed #2196F3;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.2);
}

.customer-card.drag-over-top {
    transform: translateY(10px);
    border-top: 3px solid #2196F3;
    margin-top: -5px;
    box-shadow: 0 -4px 8px rgba(33, 150, 243, 0.2);
}

.customer-card.drag-over-bottom {
    transform: translateY(-10px);
    border-bottom: 3px solid #2196F3;
    margin-bottom: -5px;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.2);
}

/* Animasyon efekti */
@keyframes cardReturn {
    0% { 
        transform: scale(0.95) rotate(-1deg);
        box-shadow: 0 8px 20px rgba(33, 150, 243, 0.2);
    }
    50% { 
        transform: scale(1.02) rotate(1deg);
        box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
    }
    100% { 
        transform: scale(1) rotate(0);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

.customer-card.returning {
    animation: cardReturn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-number {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #333;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
}

.customer-card h3 {
    margin-bottom: 0.2rem;
    color: #333;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-card p {
    color: #666;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Raporlar sayfası stilleri */
.reports-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px;
}

.reports-container h2 {
    margin-bottom: 20px;
    color: #333;
}

.report-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.report-filters input[type="date"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.report-filters button {
    padding: 8px 16px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.report-filters button:hover {
    background: #444;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.reports-table th,
.reports-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.reports-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.reports-table tr:hover {
    background-color: #f9f9f9;
}

.reports-table button {
    padding: 6px 12px;
    margin: 0 4px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.reports-table button:first-child {
    background: #4CAF50;
    color: white;
}

.reports-table button:last-child {
    background: #f44336;
    color: white;
}

.reports-table button:hover {
    opacity: 0.9;
}

/* Harita arama kutusu stili */
.map-search-input {
    margin: 10px;
    padding: 10px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 14px;
}

.map-search-input:focus {
    outline: none;
    border-color: #2196F3;
}

/* Rota bilgisi kutusu stili */
.route-info {
    padding: 10px 15px;
    border-radius: 6px;
    margin: 5px;
    color: white;
    font-size: 0.9rem;
}

.route-info strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.route-info div {
    margin: 3px 0;
}

/* Trafik durumu renkleri */
.traffic-status {
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    margin-top: 5px;
}

.traffic-heavy {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

.traffic-moderate {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.traffic-light {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.customers-container h2 {
    margin-bottom: 15px;
    padding-bottom: 8px;
    font-size: 1.1rem;
}

.customer-card .contact {
    font-size: 0.85rem;
    color: #666;
    margin: 5px 0;
}

.customer-card .order-info {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    font-weight: bold;
    color: #2196F3;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.customer-card .seller-name {
    color: #2196F3;
    font-weight: 500;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.customer-card .location {
    color: #666;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.customer-card .address {
    color: #666;
    font-size: 0.7rem;
    font-style: italic;
}

/* Araçlar container'ı */
.vehicles-container {
    flex: 1.6;
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.vehicles-container h2 {
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Araç sütunlarını düzenle */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
    width: 100%;
}

.vehicle-column {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    border: 2px solid;
    min-width: 250px;
}

/* Her araç için özel renkler */
.vehicle-column[data-vehicle="34EH4705"] {
    border-color: #ff4444;
}

.vehicle-column[data-vehicle="34EH4705"] h3 {
    color: #ff4444;
}

.vehicle-column[data-vehicle="34FY0954"] {
    border-color: #ff8800;
}

.vehicle-column[data-vehicle="34FY0954"] h3 {
    color: #ff8800;
}

.vehicle-column[data-vehicle="34HLU622"] {
    border-color: #9933CC;
}

.vehicle-column[data-vehicle="34HLU622"] h3 {
    color: #9933CC;
}

.vehicle-column h3 {
    font-size: 0.9rem;
    margin-bottom: 6px;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vehicle-column h3 i {
    font-size: 1.1rem;
}

/* Her araç için özel renkler ve ikonlar */
.vehicle-column[data-vehicle="34EH4705"] h3 i {
    color: #ff4444;
}

.vehicle-column[data-vehicle="34FY0954"] h3 i {
    color: #ff8800;
}

.vehicle-column[data-vehicle="34HLU622"] h3 i {
    color: #9933CC;
}

.vehicle-list {
    min-height: 50px;
    max-height: 300px;
    padding: 6px;
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: white;
    border-radius: 4px;
    width: 100%;
}

.vehicle-list.drag-over {
    background: #f8f8f8;
    border: 2px dashed currentColor;
}

/* Araç listelerindeki kartlar için özel stil */
.vehicle-list .customer-card {
    padding: 0.3rem;
    font-size: 0.7rem;
    min-height: 80px;
    height: auto;
    background: white;
    border: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

.vehicle-list .customer-card h3 {
    font-size: 0.8rem;
    margin-bottom: 0.1rem;
}

.vehicle-list .customer-card .seller-name,
.vehicle-list .customer-card .location {
    font-size: 0.65rem;
    margin-bottom: 1px;
}

.vehicle-list .customer-card .address {
    font-size: 0.6rem;
}

.vehicle-list .customer-card .order-number {
    width: 14px;
    height: 14px;
    font-size: 0.6rem;
    top: -6px;
    left: -6px;
}

.reset-button {
    background: linear-gradient(145deg, #2196F3, #1976D2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.reset-button:hover {
    background: linear-gradient(145deg, #1976D2, #1565C0);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.reset-button:active {
    transform: translateY(1px);
}

.reset-button i {
    font-size: 1rem;
}

/* Yenileme animasyonu */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.reset-button.loading i {
    animation: spin 1s linear infinite;
}

.logo-container {
    margin-right: auto;
    padding-right: 20px;
    padding-left: 50px;
}

.header-logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
    object-fit: contain;
    margin-left: 30px;
}

/* Cariler sayfası stilleri */
.customers-table-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px;
}

.table-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 100px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.export-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.export-button:hover {
    background: #45a049;
}

.table-wrapper {
    overflow-x: auto;
}

.customers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.customers-table th,
.customers-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.customers-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.customers-table tr:hover {
    background-color: #f9f9f9;
}

/* Aktif menü öğesi için stil */
nav ul li a.active {
    background: rgba(0,0,0,0.05);
    color: #000;
    font-weight: bold;
}

/* HERE Maps için özel stiller */
.H_ib_content {
    min-width: 200px;
    font-family: Arial, sans-serif;
}

.H_ib_content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.H_ib_content p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Marker etiketleri için stil */
.H_ib_body {
    background: rgb(244, 246, 248);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 12px;
    z-index: 1000 !important;
}

.info-bubble h3 {
    color: #333;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.info-bubble p {
    color: #666;
    font-size: 12px;
    margin: 4px 0;
}

.H_ib_content {
    z-index: 1001 !important;
}

.marker-container {
    position: relative;
    width: 24px;
    height: 24px;
}

.marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.marker-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 10px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    pointer-events: none;
}

.maplibregl-popup {
    max-width: 300px;
}

.info-bubble {
    padding: 10px;
}

.info-bubble h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.info-bubble p {
    margin: 5px 0;
    color: #666;
}

/* Cari listesindeki kartlar için stil */
.customers-list .customer-card {
    width: 100%;
    box-sizing: border-box;
    min-height: 80px;
} 

.search-results li.already-selected {
    background-color: #e8f5e9;
    border-left: 3px solid #4CAF50;
    font-weight: 500;
}

.search-results li.already-selected:hover {
    background-color: #c8e6c9;
}

.already-selected-indicator {
    display: inline-block;
    color: #4CAF50;
    margin-left: 5px;
    font-size: 12px;
} 