* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: #f0e8e4;
    color: #333;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

.header {
    background: linear-gradient(90deg, #1565a0 0%, #1976b8 100%);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 60px;
    max-width: 250px;
    object-fit: contain;
}

.logo {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
}

.menu-toggle {
    background: transparent;
    border: none;
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.hero {
    position: relative;
    background: #f0e8e4;
    padding-bottom: 40px;
}

.hero-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.tracking-box {
    background: #fff;
    margin: -50px 20px 0;
    padding: 30px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    position: relative;
    z-index: 10;
}

.tracking-title {
    color: #1565a0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.icon-search {
    width: 20px;
    height: 20px;
    color: #1565a0;
}

.tracking-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-cpf {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    outline: none;
    transition: border-color 0.2s;
}

.input-cpf:focus {
    border-color: #1565a0;
}

.input-cpf::placeholder {
    color: #999;
}

.input-cpf.error {
    border-color: #d32f2f;
}

.error-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: -8px;
    margin-bottom: 4px;
    min-height: 16px;
}

.btn-track {
    background: #ff8c00;
    color: #fff;
    border: none;
    padding: 13px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-track:hover {
    background: #e67e00;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.tracking-help {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}

.services {
    padding: 30px 20px;
    background: #fff;
}

.services-title {
    color: #1565a0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
}

.service-card {
    position: relative;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    height: 180px;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.3));
    color: #fff;
    padding: 40px 16px 16px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #1565a0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-content p {
    color: #1565a0;
    font-size: 15px;
    font-weight: 600;
}

.result-page {
    padding: 0;
    background: #f0e8e4;
    min-height: calc(100vh - 60px);
}

.progress-bar {
    height: 8px;
    background: linear-gradient(to right, #4caf50 0%, #4caf50 50%, #e0e0e0 50%);
}

.alert-danger {
    background: #ffebee;
    border: 2px solid #d32f2f;
    border-radius: 8px;
    color: #d32f2f;
    padding: 16px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    margin: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.15);
}

.info-box {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    margin: 0 20px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.info-row {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:first-child {
    border-radius: 8px 8px 0 0;
}

.info-row:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.info-icon {
    color: #1565a0;
    flex-shrink: 0;
}

.info-label {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    flex-shrink: 0;
}

.info-value {
    color: #333;
    font-size: 14px;
    font-weight: 700;
    margin-left: 4px;
}

.btn-payment {
    width: calc(100% - 40px);
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin: 0 20px 30px;
}

.timeline-container {
    position: relative;
    padding: 0 20px 20px 30px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 20px;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
    padding-left: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -5px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 2px solid #e0e0e0;
    z-index: 2;
}

.timeline-item.active .timeline-dot {
    background: #4caf50;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.timeline-content {
    background: transparent;
    padding: 0;
    border-left: none;
    margin-left: 0;
}

.timeline-item.active .timeline-content {
    border-left: none;
}

.timeline-content h3 {
    color: #1565a0;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content h3.text-danger {
    color: #d32f2f;
}

.timeline-content p {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 0;
    margin-top: 4px;
}

.timeline-status {
    margin-top: 8px;
    font-weight: 400;
    font-size: 12px;
    color: #333;
}

.text-danger {
    color: #d32f2f;
}

.text-blue {
    color: #1565a0;
}

.text-success {
    color: #4caf50;
}

.btn-back {
    width: calc(100% - 40px);
    background: #757575;
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 16px 20px 20px;
}

.btn-back:hover {
    background: #666;
}

.footer-quick {
    background: #1565a0;
    color: #fff;
    padding: 24px 20px;
    margin: 24px 0 20px;
    border-radius: 0;
}

.footer-quick h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-quick ul {
    list-style: none;
}

.footer-quick li {
    margin-bottom: 10px;
}

.footer-quick a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-quick a:hover {
    color: #fff;
}


/* Admin Styles */
.login-wrapper {
    background: #f0e8e4;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    width: 100%;
    max-width: 400px;
}

.login-title {
    color: #1565a0;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #1565a0;
}

.btn-login {
    background: #1565a0;
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #0d4d80;
}

.btn-logout {
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.admin-wrapper {
    background: #f0e8e4;
    min-height: calc(100vh - 60px);
    padding: 20px;
}

.admin-header {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.admin-header h2 {
    color: #1565a0;
    font-size: 18px;
    font-weight: 600;
}

.btn-add {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add:hover {
    background: #45a049;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1565a0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.order-card h3 {
    color: #1565a0;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.order-card p {
    color: #666;
    font-size: 14px;
    margin: 8px 0;
}

.order-card p strong {
    color: #333;
    font-weight: 600;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-edit {
    flex: 1;
    background: #2196f3;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-delete {
    flex: 1;
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
}

.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal-header {
    background: #1565a0;
    color: #fff;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 600;
}

.btn-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.modal-form {
    padding: 24px;
}

.btn-submit {
    width: 100%;
    background: #1565a0;
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #0d4d80;
}


/* News Section */
.news {
    padding: 30px 20px;
    background: #fff;
}

.news-title {
    color: #1565a0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
}

.news-item {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    color: #1565a0;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1565a0;
    color: #fff;
    padding: 30px 20px;
}

.footer-section {
    margin-bottom: 24px;
}

.footer-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #fff;
}


/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    padding: 20px 20px 0;
    background: #f0e8e4;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: #fff;
    border: none;
    border-radius: 6px 6px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #1565a0;
    color: #fff;
}

.tab-content {
    display: none;
}

.pix-config-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pix-config-card h2 {
    color: #1565a0;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.pix-config-card small {
    color: #999;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.pix-status {
    margin-top: 24px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #4caf50;
}

.pix-status p {
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

/* PIX Payment Modal */
#pixPaymentModal {
    display: none;
}

#pixPaymentModal.show {
    display: block;
}

#pixPaymentModal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.pix-modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    width: 90%;
    max-width: 360px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.btn-close-pix {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.btn-close-pix:hover {
    color: #333;
}

.pix-modal-box h3 {
    color: #1565a0;
    font-size: 17px;
    margin-bottom: 16px;
    font-weight: 600;
}

.pix-amount {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.pix-amount p {
    color: #666;
    font-size: 12px;
    margin-bottom: 4px;
}

.pix-amount h2 {
    color: #1565a0;
    font-size: 24px;
    font-weight: 700;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 16px 0;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.qr-container canvas,
.qr-container img {
    max-width: 180px;
    height: auto;
}

.pix-key-display {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.pix-key-display input {
    flex: 1;
    padding: 10px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 10px;
    font-family: monospace;
    background: #f9f9f9;
    color: #333;
}

.btn-copy {
    background: #1565a0;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #0d4d80;
}

.pix-instructions {
    color: #666;
    font-size: 11px;
    line-height: 1.5;
}


.text-blue {
    color: #1565a0;
}

.text-success {
    color: #4caf50;
}


.pix-description {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
    font-family: monospace;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

textarea:focus {
    border-color: #1565a0;
}


/* Custom Alert */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.custom-alert-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.custom-alert-icon {
    margin-bottom: 20px;
}

.custom-alert-message {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.custom-alert-btn {
    background: #1565a0;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-alert-btn:hover {
    background: #0d4d80;
}


/* Custom Alert Admin */
.custom-alert-modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.custom-alert-icon-admin {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.custom-alert-message-admin {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.custom-alert-btn-admin {
    background: #1565a0;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-alert-btn-admin:hover {
    background: #0d4d80;
}
