/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

:root {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --light-gray: #ecf0f1;
    --success-color: #2ecc71;
    --icon-color: #2ecc71; /* Verde para ícones */
}

/* Tela de Login */
.login-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo {
    margin-bottom: 2rem;
}

.logo i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--icon-color);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: var(--primary-dark);
}

.error-message {
    color: var(--primary-color);
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}

/* Tela de Rastreamento */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content .logo {
    display: flex;
    align-items: center;
    margin: 0;
}

.header-content .logo i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0;
    color: white;
}

.header-content .logo h1 {
    font-size: 1.5rem;
    color: white;
}

.logout-btn {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background-color: var(--light-gray);
}

.tracking-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.product-info h2, .delivery-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-card {
    display: flex;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.product-image {
    width: 80px;
    height: 80px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.5rem;
    color: var(--icon-color);
    font-size: 2rem;
}

.product-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.order-number {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.delivery-estimate {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.delivery-estimate i {
    margin-right: 0.5rem;
    color: var(--icon-color);
}

.status-timeline {
    position: relative;
    padding-left: 30px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ddd;
}

.status-step {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.step-icon {
    width: 32px;
    height: 32px;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    position: absolute;
    left: -40px;
    color: #ddd;
}

.status-step.active .step-icon {
    border-color: var(--icon-color);
    color: var(--icon-color);
    background-color: white;
}

.status-step.completed .step-icon {
    border-color: var(--icon-color);
    background-color: var(--icon-color);
    color: white;
}

.step-content {
    flex: 1;
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.step-content h4 {
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.step-content p {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.expected {
    font-style: italic;
}

.truck-animation {
    margin: 3rem 0;
    text-align: center;
    position: relative;
}

.truck-animation i {
    font-size: 3rem;
    color: var(--icon-color);
    position: relative;
}

.road {
    height: 2px;
    background-color: #ddd;
    margin-top: 1rem;
    position: relative;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-gray);
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Responsividade */
@media (max-width: 768px) {
    .login-container {
        margin: 2rem auto;
        padding: 1.5rem;
    }

    .product-card {
        flex-direction: column;
        text-align: center;
    }

    .product-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .header-content {
        flex-direction: column;
    }

    .logout-btn {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 1rem;
        padding: 1rem;
    }

    .tracking-container {
        padding: 0 1rem;
    }

    .status-timeline {
        padding-left: 20px;
    }

    .step-icon {
        left: -30px;
    }
}
@media (max-width: 480px) {
    .login-container {
        margin: 1rem;
        padding: 1rem;
    }

    .tracking-container {
        padding: 0 1rem;
    }

    .status-timeline {
        padding-left: 20px;
    }

    .step-icon {
        left: -30px;
    }
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
