/* static/style.css */
/* updated body style */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    margin: 0;

    /* --- Dark Green Faded Background --- */
    /* This creates a semi-transparent dark green layer on TOP of your image */
    background-image:
        linear-gradient(rgba(33, 136, 56, 0.4), rgba(33, 136, 56, 0.2)),
        url('UN truck.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    /* These properties are for centering the main content box */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 110px 0; /* Add some top and bottom padding for spacing */
    box-sizing: border-box; /* Ensures padding doesn't break layout */
}

/* inside static/style.css */

.container {
    background: #ffffff; /* Solid white background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.logo {
    max-width: 150px;
    margin-bottom: 20px;
}

h1 {
    color: #28a745; /* A corporate green */
    margin-bottom: 10px;
}

p {
    color: #666;
    margin-bottom: 30px;
}

#tracking-form {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#tracking-number {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 65%;
}

button {
    padding: 12px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #218838;
}

#result-container {
    margin-top: 30px;
    text-align: left;
}

.error {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    border-left: 5px solid #c62828;
}

.result-card {
    background-color: #e9f5ec; /* Light green background */
    border-left: 5px solid #28a745; /* Main green border */
    padding: 20px;
    border-radius: 5px;
}

.result-card h3 {
    margin-top: 0;
    color: #218838; /* Darker green for header */
}

.result-card ul {
    list-style-type: none;
    padding: 0;
}

.result-card li {
    padding: 8px 0;
    border-bottom: 1px solid #c8e6c9; /* Lighter green separator */
}

.result-card li:last-child {
    border-bottom: none;
}

.result-card strong {
    color: #218838; /* Darker green for strong text */
}

.status-badge {
    background-color: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
}

.hidden {
    display: none;
}



/* --- NEW PROFESSIONAL RESULT CARD STYLES --- */
/* Add this to the end of your style.css file */

.result-card-pro {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: left;
    overflow: hidden; /* Ensures child elements conform to border radius */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

/*    *//* --- ADD THESE THREE LINES --- */
/*    max-width: 500px;*/
/*    width: 90%;*/
/*    margin: 0 auto; *//* Centers the card horizontally */
}

.result-header {
    background-color: #f7f7f7;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.result-header h3 {
    margin: 0;
    font-size: 1em;
    color: #666;
    font-weight: 500;
}

.result-header p {
    margin: 5px 0 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.result-main-status {
    padding: 25px 20px;
    text-align: center;
    background-color: #fff;
}

.status-badge-pro {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Dynamic Status Badge Colors */
.status-completed { background-color: #28a745; } /* Green */
.status-transit   { background-color: #007bff; } /* Blue */
.status-warning   { background-color: #ffc107; color: #333; } /* Yellow */
.status-danger    { background-color: #dc3545; } /* Red */
.status-default   { background-color: #6c757d; } /* Gray */


.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 20px;
    padding: 20px;
    background-color: #fdfdfd;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-item i {
    font-size: 1.5em;
    color: #28a745; /* Your theme green */
    width: 30px; /* Aligns icons neatly */
    text-align: center;
}

.detail-item div {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 1em;
    font-weight: 600;
    color: #333;
}

/* Hide old result card style if it ever appears */
.result-card {
    display: none;
}