@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.altai-cargo-wrapper {
    font-family: 'Inter', sans-serif;
    max-width: 900px;
    margin: 20px auto;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

/* Admin Dashboard */
.altai-cargo-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 25px 35px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.altai-cargo-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.altai-cargo-logo {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.altai-cargo-content {
    padding: 35px;
}

/* Form Styles */
.altai-cargo-group {
    margin-bottom: 20px;
}

.altai-cargo-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #475569;
}

.altai-cargo-group input[type="text"],
.altai-cargo-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f8fafc;
    box-sizing: border-box;
}

.altai-cargo-group input[type="text"]:focus,
.altai-cargo-group select:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.altai-cargo-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11);
}

.altai-cargo-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Frontend Tracking Timeline */
.altai-track-container {
    font-family: 'Inter', sans-serif;
    max-width: 750px;
    margin: 30px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Search Form */
.altai-track-search {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.altai-track-search input {
    flex-grow: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
}

.altai-track-search button {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

/* Visual Timeline */
.altai-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0;
    padding: 0 10px;
}

.altai-timeline-bar {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.altai-timeline-progress {
    position: absolute;
    top: 20px;
    left: 0;
    height: 4px;
    background: #10b981;
    z-index: 1;
    transition: width 0.8s ease;
    width: 0%;
}

.altai-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
}

.altai-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.4s ease;
}

.altai-step.active .altai-step-icon {
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.altai-step.completed .altai-step-icon {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
}

.altai-step-title {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.altai-step.active .altai-step-title {
    color: #1e293b;
}

.altai-step.completed .altai-step-title {
    color: #10b981;
}

/* Tracking Details Panel */
.altai-track-details {
    margin-top: 30px;
    border-top: 1px solid #e2e8f0;
    padding-top: 25px;
}

.altai-details-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.altai-details-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #1e293b;
}

.altai-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    font-size: 14px;
}

.altai-details-grid div strong {
    color: #475569;
}

/* History Logs Table */
.altai-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 15px;
}

.altai-history-table th, 
.altai-history-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.altai-history-table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
}

.altai-history-table tr:hover {
    background: #f8fafc;
}

/* Admin Metabox Styles */
.altai-metabox-row {
    margin-bottom: 12px;
}

.altai-metabox-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.altai-metabox-row input[type="text"],
.altai-metabox-row select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
