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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 1.5em;
    font-weight: 600;
}

.stats {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
}

.main-content {
    display: flex;
    height: calc(100vh - 70px);
}

.sidebar {
    width: 350px;
    background: white;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.filters {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.filters h3 {
    margin-bottom: 15px;
    color: #333;
}

.filters select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.courier-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.courier-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.courier-item:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-1px);
}

.courier-item.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.courier-status {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.status-icon {
    font-size: 1.2em;
    margin-right: 8px;
}

.status-text {
    font-weight: 600;
    color: #333;
}

.courier-info {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.map-container {
    flex: 1;
    position: relative;
}

.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.control-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.control-btn:hover {
    background: #f0f4ff;
    border-color: #667eea;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #333;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-height: 40vh;
    }
    
    .main-content {
        flex-direction: column;
    }
}
