/* Estilo geral inspirado nas telas do SuiviExpress */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.sx-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f6fa;
    color: #1f2933;
}

a {
    text-decoration: none;
    color: inherit;
}

.sx-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.sx-header-login {
    justify-content: flex-start;
}

.sx-main {
    padding: 32px;
    display: flex;
    justify-content: center;
}

.sx-main-login {
    padding-top: 72px;
}

.sx-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.sx-card-login {
    max-width: 520px;
    width: 100%;
    padding: 40px 48px 32px 48px;
}

.sx-card-tracking {
    max-width: 960px;
    width: 100%;
    padding: 28px 40px 32px 40px;
}

/* Logo e marca */
.sx-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.sx-logo-square {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background-color: #0b4f8a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sx-logo-square.small {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.sx-logo-cube {
    width: 26px;
    height: 26px;
    border: 3px solid #ffffff;
    border-radius: 6px;
    position: relative;
}

.sx-logo-cube::before,
.sx-logo-cube::after {
    content: "";
    position: absolute;
    border: 3px solid #ffffff;
    border-radius: 4px;
    width: 14px;
    height: 14px;
}

.sx-logo-cube::before {
    top: -6px;
    left: 4px;
}

.sx-logo-cube::after {
    right: -6px;
    bottom: 4px;
}

.sx-logo-text h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.sx-logo-text p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

/* Formulário de login */
.sx-form-wrapper {
    margin-top: 12px;
}

.sx-form-wrapper h2 {
    font-size: 20px;
    margin: 0 0 4px 0;
}

.sx-form-subtitle {
    margin: 0 0 20px 0;
    color: #6b7280;
    font-size: 14px;
}

.sx-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sx-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sx-form-group label {
    font-size: 14px;
    font-weight: 500;
}

.sx-form-group input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sx-form-group input:focus {
    outline: none;
    border-color: #0b4f8a;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.sx-btn-primary {
    margin-top: 8px;
    width: 100%;
    padding: 11px 10px;
    border-radius: 8px;
    border: none;
    background-color: #0b4f8a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.sx-btn-primary:hover {
    background-color: #0f5da2;
}

.sx-btn-primary:active {
    transform: translateY(1px);
}

.sx-btn-secondary {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    font-size: 14px;
}

.sx-form-hint {
    margin-top: 16px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

/* Switcher de idioma */
.sx-lang-switcher {
    position: relative;
    display: inline-block;
}

.sx-lang-switcher > summary {
    list-style: none;
    cursor: pointer;
}

.sx-lang-switcher > summary::-webkit-details-marker {
    display: none;
}

.sx-lang-switcher > summary::marker {
    content: '';
}

.sx-lang-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    font-size: 12px;
}

.sx-lang-icon {
    font-size: 14px;
}

.sx-lang-code {
    font-weight: 600;
}

.sx-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 180px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    padding: 6px 0;
    z-index: 50;
    border: 1px solid #e5e7eb;
}

.sx-lang-dropdown a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
}

.sx-lang-dropdown a:hover,
.sx-lang-dropdown a.sx-lang-link--active {
    background-color: #f3f4f6;
}

.sx-lang-switcher[open] .sx-lang-dropdown {
    display: block;
}

/* Header tracking */
.sx-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sx-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sx-brand-title {
    font-weight: 600;
}

.sx-brand-email {
    font-size: 12px;
    color: #6b7280;
}

.sx-header-right {
    font-size: 14px;
}

.sx-link-logout {
    color: #6b7280;
}

.sx-link-logout:hover {
    color: #111827;
}

/* Tracking card */
.sx-tracking-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.sx-tracking-header h2 {
    margin: 0 0 4px 0;
    font-size: 18px;
}

.sx-tracking-code {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.sx-tracking-route {
    font-size: 13px;
    color: #9ca3af;
}

.sx-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background-color: #e0edff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 500;
}

/* Timeline */
.sx-tracking-timeline {
    margin-top: 8px;
    padding-left: 10px;
}

.sx-timeline-item {
    display: flex;
    position: relative;
    padding-bottom: 24px;
}

.sx-timeline-item::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
}

.sx-timeline-item:last-child::before {
    display: none;
}

.sx-timeline-icon {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
    margin-right: 16px;
    font-size: 16px;
}

.sx-timeline-item.completed .sx-timeline-icon {
    background-color: #0b4f8a;
    color: #ffffff;
}

.sx-timeline-item.current .sx-timeline-icon {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.sx-timeline-content {
    padding-top: 2px;
}

.sx-timeline-date {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 2px;
}

.sx-timeline-location {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.sx-timeline-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.sx-timeline-description {
    font-size: 13px;
    color: #6b7280;
}

.sx-tracking-empty {
    text-align: center;
}

.sx-tracking-empty h2 {
    margin-top: 0;
}

.sx-tracking-empty p {
    color: #6b7280;
    margin-bottom: 18px;
}

/* Responsividade */
@media (max-width: 768px) {
    .sx-header {
        padding: 12px 16px;
    }

    .sx-main,
    .sx-main-login {
        padding: 16px;
    }

    .sx-card-login,
    .sx-card-tracking {
        padding: 24px 20px 20px 20px;
    }

    .sx-tracking-header {
        flex-direction: column;
        gap: 10px;
    }
}

