/**
 * Public Styles
 *
 * @package Meridian_Courier_Tracking
 */

/* Tracking Form */
.mct-tracking-form {
    max-width: 600px;
    margin: 0 auto 30px;
}

.mct-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mct-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mct-form label {
    font-weight: 500;
    color: #1e293b;
    font-size: 14px;
}

.mct-form input[type="text"],
.mct-form input[type="email"],
.mct-form input[type="number"],
.mct-form input[type="date"],
.mct-form input[type="time"],
.mct-form select,
.mct-form textarea {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mct-form input:focus,
.mct-form select:focus,
.mct-form textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

.mct-btn-primary {
    background-color: #0066cc;
    color: white;
}

.mct-btn-primary:hover {
    background-color: #0052a3;
}

.mct-btn-secondary {
    background-color: #f3f4f6;
    color: #1e293b;
}

.mct-btn-secondary:hover {
    background-color: #e5e7eb;
}

/* Tracking Result */
.mct-tracking-result {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Status Banner */
.mct-status-banner {
    padding: 30px 20px;
    text-align: center;
}

.mct-status-text {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tracking Header */
.mct-tracking-header {
    padding: 30px 20px;
    text-align: center;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.mct-tracking-number {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.mct-barcode {
    display: flex;
    justify-content: center;
}

.mct-barcode svg {
    max-width: 100%;
    height: auto;
}

/* Summary Section */
.mct-summary-section {
    padding: 30px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mct-summary-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.mct-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.mct-summary-item {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
}

.mct-summary-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.mct-summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

/* QR Code Section */
.mct-qrcode-section {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.mct-qrcode-wrapper {
    display: inline-block;
}

.mct-qrcode-label {
    margin-top: 10px;
    font-size: 14px;
    color: #64748b;
}

/* Details Section */
.mct-details-section {
    padding: 30px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mct-details-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

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

.mct-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mct-detail-item.mct-detail-full {
    grid-column: 1 / -1;
}

.mct-detail-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mct-detail-value {
    font-size: 16px;
    color: #1e293b;
}

/* Info Section */
.mct-info-section {
    padding: 30px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mct-info-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.mct-info-card {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
}

.mct-info-name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.mct-info-company {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.mct-info-address {
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 5px;
}

.mct-info-location {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.mct-info-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mct-info-phone,
.mct-info-email {
    font-size: 14px;
    color: #1e293b;
}

/* Packages Section */
.mct-packages-section {
    padding: 30px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mct-packages-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.mct-table-responsive {
    overflow-x: auto;
}

.mct-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mct-table thead {
    background: #f9fafb;
}

.mct-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.mct-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #1e293b;
}

.mct-table tbody tr:last-child td {
    border-bottom: none;
}

/* History Section */
.mct-history-section {
    padding: 30px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mct-history-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.mct-timeline {
    position: relative;
    padding-left: 30px;
}

.mct-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.mct-timeline-item {
    position: relative;
    padding-bottom: 25px;
}

.mct-timeline-item:last-child {
    padding-bottom: 0;
}

.mct-timeline-marker {
    position: absolute;
    left: -30px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0066cc;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #0066cc;
}

.mct-timeline-latest .mct-timeline-marker {
    background: #10b981;
    box-shadow: 0 0 0 2px #10b981;
}

.mct-timeline-content {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
}

.mct-timeline-date {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
}

.mct-timeline-status {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.mct-timeline-location {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 5px;
}

.mct-timeline-remarks {
    font-size: 14px;
    color: #1e293b;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

/* Actions Section */
.mct-actions-section {
    padding: 30px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Error Messages */
.mct-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    color: #dc2626;
    text-align: center;
}

.mct-not-found {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 16px;
    color: #92400e;
    text-align: center;
}

/* Loading */
.mct-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.mct-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #0066cc;
    border-radius: 50%;
    border-top-color: transparent;
    animation: mct-spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes mct-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mct-tracking-result {
        border-radius: 0;
        box-shadow: none;
    }
    
    .mct-summary-grid,
    .mct-details-grid {
        grid-template-columns: 1fr;
    }
    
    .mct-status-text {
        font-size: 20px;
    }
    
    .mct-tracking-number {
        font-size: 24px;
    }
    
    .mct-actions-section {
        flex-direction: column;
    }
    
    .mct-btn {
        width: 100%;
    }
    
    .mct-table {
        font-size: 12px;
    }
    
    .mct-table th,
    .mct-table td {
        padding: 8px 10px;
    }
}
