.aloship-tracker-pro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Vazir', 'Tahoma', sans-serif;
    direction: rtl;
}

.tracker-header {
    text-align: center;
    margin-bottom: 40px;
}

.tracker-header h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tracker-header p {
    color: #7f8c8d;
    font-size: 16px;
}

.tracker-form-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.tracker-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.type-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.type-btn .icon {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

.type-btn.active,
.type-btn:hover {
    background: white;
    color: #667eea;
    border-color: white;
    transform: translateY(-2px);
}

.tracker-input-section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tracking-input {
    flex: 2;
    min-width: 250px;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    background: white;
    outline: none;
}

.carrier-select {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    background: white;
    outline: none;
    cursor: pointer;
}

.track-button {
    padding: 15px 40px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

.results-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

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

#status-container,
#timeline-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-controls {
    margin-top: 15px;
    text-align: left;
}

.map-style-selector {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.status-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-right: 4px solid #667eea;
}

.status-card h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.status-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.status-item label {
    display: block;
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.status-item span {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.timeline-item {
    position: relative;
    padding-right: 40px;
    padding-bottom: 30px;
    border-right: 3px solid #667eea;
}

.timeline-item:last-child {
    border-right-color: #ecf0f1;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 18px;
    height: 18px;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #667eea;
}

.timeline-date {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.timeline-status {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.timeline-location {
    font-size: 14px;
    color: #667eea;
}

.tracking-error {
    background: #fee;
    color: #c33;
    padding: 20px;
    border-radius: 10px;
    border-right: 4px solid #c33;
    margin-top: 20px;
}

/* تم تیره */
[data-theme="dark"] {
    background: #1a1a2e;
}

[data-theme="dark"] .tracker-header h2 {
    color: #fff;
}

[data-theme="dark"] .status-card,
[data-theme="dark"] #status-container,
[data-theme="dark"] #timeline-container {
    background: #16213e;
    color: #fff;
}

@media (max-width: 768px) {
    .tracker-type-selector {
        flex-direction: column;
    }
    
    .type-btn {
        min-width: 100%;
    }
    
    .tracker-input-section {
        flex-direction: column;
    }
    
    .tracking-input,
    .carrier-select,
    .track-button {
        min-width: 100%;
    }
    
    .map-container {
        height: 350px;
    }
}