.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 1rem;
    padding: 20px 40px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.05);
    color: #b23a48;
}

.nav-link.active {
    color: #b23a48;
    background: #eecace;
    border-bottom: 3px solid #b23a48;
}

@media (max-width: 600px) {
    .nav-link {
        padding: 15px 30px;
        font-size: 0.9rem;
    }
}


body {
    font-family: 'Arial', sans-serif;
    background: transparent;
    min-height: 100vh;
    padding: 90px 0 0 0;
    display: flex;
    flex-direction: column;
}

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

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

html {
    height: 100%;
    background-color: #f5f0e6;
    background-attachment: fixed;
}

.container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    margin: 20px;
}

.title {
    text-align: center;
    color: #7c4d24;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: bold;
    font-family: 'Bungee', sans-serif;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #d6c7b3;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::-webkit-outer-spin-button,
.form-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group input[type=number] {
    -moz-appearance: textfield;
}

.form-group input.error,
.form-group select.error {
    border-color: #e74c3c;
    background: #ffe6e6;
}

.btn-avaliar {
    background-color: #b23a48;
    color: white;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.btn-avaliar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

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

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}

.error-message.hidden {
    display: none;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .form {
        gap: 15px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 0.95rem;
    }

    .btn-avaliar {
        padding: 12px;
        font-size: 1rem;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.result-section {
    margin-bottom: 25px;
}

.result-section:last-child {
    margin-bottom: 0;
}

.result-section h3 {
    color: #b23a48 ;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.result-label {
    color: #555;
    font-weight: 500;
}

.result-value {
    color: #333;
    font-weight: 600;
}

.result-final {
    background-color: #b23a49;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.result-final h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.result-final .final-score {
    font-size: 2.5rem;
    font-weight: bold;
}

@media (max-width: 600px) {
    .modal-content {
        max-height: 90vh;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 20px;
    }

    .result-section h3 {
        font-size: 1rem;
    }

    .result-final .final-score {
        font-size: 2rem;
    }
}

.modal-save {
    max-width: 400px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel,
.btn-save {
    flex: 1;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #e0e0e0;
    color: #666;
}

.btn-cancel:hover {
    background: #d0d0d0;
}

.btn-save {
    background-color: #27ae60;
    color: white;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-salvar-conta {
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

.btn-salvar-conta:hover {
    background: #229954;
    transform: translateY(-2px);
}

.toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #27ae60;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: top 0.4s ease;
}

.toast.show {
    top: 20px;
}

.toast.hidden {
    display: block;
}

#nomeConta.error {
    border-color: #e74c3c;
    background: #ffe6e6;
}

.save-error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: 600;
}

.save-error-message.hidden {
    display: none;
}

.lista-contas {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.conta-item {
    background: #f5f0e6;
    border: 2px solid #e6d7c9;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.conta-item:hover {
    border-color: #b23a48;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.conta-info {
    flex: 1;
}

.conta-nome {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.conta-data {
    font-size: 0.9rem;
    color: #666;
}

.btn-delete-icon {
    background: #e74c3c;
    border: none;
    border-radius: 8px;
    width: 35px;
    height: 35px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-icon:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.btn-delete-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.btn-delete {
    flex: 1;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.empty-message {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 40px 20px;
}

#deleteMessage {
    text-align: center;
    color: #333;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 2px solid #e0e0e0;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 40px;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-separator {
    color: #999;
}

.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-social a {
    color: #b23a48;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    color: #851b27;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-text {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-separator {
        display: none;
    }
}

.form-group label {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #b23a48;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: help;
    position: relative;
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: #333;
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: normal;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

.tooltip-icon:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 600px) {
    .tooltip-content {
        white-space: normal;
        max-width: 200px;
        text-align: center;
    }
}

.conta-detalhes {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.conta-data {
    color: #666;
}

.conta-separador {
    color: #999;
}

.conta-indice {
    color: #b23a48;
    font-weight: 600;
}

@media (max-width: 600px) {
    .conta-detalhes {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .conta-separador {
        display: none;
    }
}

.btn-exportar-conta {
    background: #3498db;
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

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

.export-success-message {
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
}

.export-success-message.hidden {
    display: none;
}