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

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: white;  /* White background */
    min-height: 100vh;
}

.ulink_spacer {
    height: 10px;
    background: white;
}

#ulink_container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
}

/* Header Image */
.header-image {
    width: 100%;
    max-width: 930px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Footer Image */
.footer-image {
    width: 100%;
    max-width: 930px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
}

/* Content Area */
.text_area {
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
}

.post_box {
    max-width: 100%;
}

.post_text_area {
    padding: 10px;
}

/* Title Styles */
.tracking-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tracking-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Search Input */
.search-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: monospace;
    letter-spacing: 1px;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.search-input::placeholder {
    color: #bdc3c7;
    font-family: 'Roboto', Arial, sans-serif;
    letter-spacing: normal;
}

/* Search Button */
.search-btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.search-btn:active {
    transform: translateY(0);
}

/* Loader */
.loader {
    display: none;
    text-align: center;
    padding: 30px;
    margin-top: 20px;
}

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

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

/* Error Message */
.error-msg {
    display: none;
    background: #fee;
    color: #c0392b;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    border-left: 4px solid #c0392b;
}

/* Result Container */
.result-container {
    display: none;
    margin-top: 30px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Card */
.status-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.status-badge {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 20px;
}

.status-1 { background: #3498db; color: white; }
.status-2 { background: #2ecc71; color: white; }
.status-3 { background: #f39c12; color: white; }
.status-4 { background: #9b59b6; color: white; }
.status-5 { background: #e74c3c; color: white; }

/* Details Table */
.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.details-table td {
    padding: 12px 8px;
}

.details-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
    width: 40%;
    background: #f8f9fa;
    border-radius: 8px 0 0 8px;
}

.details-table td:last-child {
    color: #555;
}

/* Expiry Warning */
.expiry-warning {
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

.expiry-warning.expired {
    background: #fee;
    color: #c0392b;
    border-left: 4px solid #c0392b;
}

.expiry-warning.warning {
    background: #fff3e0;
    color: #e67e22;
    border-left: 4px solid #e67e22;
}

/* Info Note */
.info-note {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    font-size: 13px;
    color: #7f8c8d;
}

.note-time {
    font-size: 11px;
    margin-top: 8px;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tracking-title {
        font-size: 22px;
    }
    
    .tracking-subtitle {
        font-size: 14px;
    }
    
    .search-input, .search-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .status-badge {
        font-size: 13px;
        padding: 6px 15px;
    }
    
    .details-table td {
        padding: 8px 5px;
        font-size: 13px;
    }
    
    .text_area {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .search-input, .search-btn {
        font-size: 12px;
    }
    
    .details-table td:first-child {
        width: 45%;
    }
}

/* Print Styles */
@media print {
    .search-input, .search-btn, .loader, .error-msg {
        display: none;
    }
    
    .result-container {
        display: block !important;
    }
    
    .status-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        background: white;
    }
}