* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 30px 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: #f39c12;
}

.api-info {
    font-size: 0.9rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.form-container {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-container h2 i {
    color: #3498db;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
    width: 100%;
}

.btn:hover {
    background: #2980b9;
}

.btn i {
    margin-right: 8px;
}

.result-container {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-height: 400px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.result-header h2 {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-header h2 i {
    color: #3498db;
}

.result-content {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #7f8c8d;
}

.result-content i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.tracking-result {
    width: 100%;
}

.tracking-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.tracking-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.info-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-delivered {
    background-color: #d4edda;
    color: #155724;
}

.status-in-transit {
    background-color: #fff3cd;
    color: #856404;
}

.status-pending {
    background-color: #cce5ff;
    color: #004085;
}

.status-problem {
    background-color: #f8d7da;
    color: #721c24;
}

.tracking-history {
    margin-top: 30px;
}

.tracking-history h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-list {
    list-style: none;
    position: relative;
    padding-left: 30px;
}

.history-list::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #3498db;
}

.history-item {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #3498db;
}

.history-date {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.history-desc {
    color: #555;
}

.history-location {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 3px;
}

.courier-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.courier-btn {
    padding: 8px 15px;
    background-color: #ecf0f1;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.courier-btn:hover {
    background-color: #d5dbdb;
}

.courier-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.loading {
    display: none;
    text-align: center;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.error-message {
    color: #e74c3c;
    background-color: #fadbd8;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    display: none;
}

.success-message {
    color: #27ae60;
    background-color: #d5f4e6;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    display: none;
}

.security-note {
    background-color: #e8f4fc;
    padding: 12px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
    font-size: 0.9rem;
    margin-top: 10px;
}

.api-status {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    display: inline-block;
}

.status-live {
    background-color: #d4edda;
    color: #155724;
}

.status-test {
    background-color: #fff3cd;
    color: #856404;
}

.test-data {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 0.9rem;
}

.test-data h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.test-data ul {
    padding-left: 20px;
}

.test-data li {
    margin-bottom: 5px;
}

.api-response-info {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 0.85rem;
    font-family: monospace;
    max-height: 200px;
    overflow-y: auto;
}