:root {
    --bg-color: #f4f4f2;
    --card-bg: #ffffff;
    --text-main: #1a1a1a;
    --accent-green: #2d5a27;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

#app-container {
    background-color: var(--bg-color);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    padding: 10px 24px 20px;
}

.app-title {
    text-align: center;
    padding: 10px 0;
}

.app-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-green);
    margin: 0;
    line-height: 1.2;
}

.app-title p {
    font-size: 13px;
    color: #666;
    font-weight: 400;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-main);
    max-width: 80%;
}

.pontos-saldo {
    font-size: 48px;
    color: var(--accent-green);
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
}

main {
    flex: 1;
    padding: 0 20px;
    overflow-y: auto;
    padding-bottom: 80px;
}

.screen { 
    display: none;
}

.screen.active { 
    display: block;
}

.menu-button {
    background: var(--card-bg);
    border: none;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 16px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.1s;
    text-align: left;
}

.menu-button:active {
    transform: scale(0.98);
}

.icon-container {
    color: var(--accent-green);
    margin-right: 16px;
    display: flex;
    align-items: center;
}

.button-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
}

.impact-card {
    background: #f0f7f0;
    border: 1px solid #dde8dd;
    border-left: 4px solid var(--accent-green);
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.impact-card h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: var(--accent-green);
    font-weight: 600;
}

.impact-card-content {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-around;
    margin-top: 0;
}

.impact-card-content > div {
    flex: 1;
    text-align: center;
}

.impact-card-content span {
    font-size: 11px;
    color: #999;
    display: block;
    margin-bottom: 4px;
}

.impact-card-content h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--accent-green);
}

.stats-card {
    background: #f0f7f0;
    border: 1px solid #dde8dd;
    border-left: 4px solid var(--accent-green);
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stats-card h3 {
    margin: 0 0 12px 0;
    color: var(--accent-green);
    font-size: 15px;
    font-weight: 600;
}

.stats-content {
    display: flex;
    gap: 12px;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item > span {
    font-size: 11px;
    color: #999;
    display: block;
    margin-bottom: 4px;
}

.stat-item h3 {
    margin: 0;
    color: var(--accent-green);
    font-size: 16px;
    font-weight: 700;
}

.user-profile-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--accent-green);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.user-avatar {
    font-size: 32px;
    line-height: 1;
    min-width: 40px;
    text-align: center;
}

.user-details {
    flex: 1;
}

.user-info h3 {
    margin: 0 0 2px 0;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 700;
}

.user-location {
    margin: 0;
    color: #999;
    font-size: 13px;
}

.user-stats {
    display: flex;
    gap: 20px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.user-stat {
    flex: 1;
    text-align: center;
}

.user-stat span {
    font-size: 11px;
    color: #999;
    display: block;
    margin-bottom: 4px;
}

.user-stat strong {
    font-size: 16px;
    color: var(--accent-green);
    font-weight: 700;
}

.user-badge {
    display: inline-block;
    background: var(--accent-green);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
}

.perfil-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.perfil-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.perfil-item label {
    display: block;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.perfil-item p {
    margin: 0;
    color: var(--text-main);
    font-size: 15px;
}

.notificacao-item {
    background: #f9f9f9;
    border-left: 4px solid var(--accent-green);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
}

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

.notificacao-titulo {
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.notificacao-conteudo {
    color: var(--text-main);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.notificacao-data {
    color: #999;
    font-size: 12px;
}

.badge-item {
    background: linear-gradient(135deg, var(--accent-green), #1f4620);
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.badge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 90, 39, 0.3);
}

.badge-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.badge-titulo {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.badge-descricao {
    font-size: 11px;
    opacity: 0.9;
    line-height: 1.3;
}

.badge-desbloqueado {
    background: linear-gradient(135deg, var(--accent-green), #1f4620);
}

.badge-bloqueado {
    background: linear-gradient(135deg, #ccc, #aaa);
    opacity: 0.6;
}

.ponto-coleta {
    background: #f9f9f9;
    border-left: 4px solid var(--accent-green);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.ponto-coleta:last-child {
    margin-bottom: 0;
}

.ponto-endereco {
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.ponto-horario {
    color: var(--text-main);
    font-size: 13px;
    margin-bottom: 5px;
}

.ponto-distancia {
    color: #666;
    font-size: 12px;
}

.item-coleta {
    background: #f9f9f9;
    border-left: 4px solid var(--accent-green);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.item-coleta-data {
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 5px;
}

.item-coleta-tipo {
    color: var(--text-main);
    margin-bottom: 5px;
}

.item-coleta-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
    justify-content: center;
}

nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70px;
    background: var(--card-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    z-index: 100;
}

@media (max-width: 600px) {
    nav {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
    }
}

nav button {
    background: none;
    border: none;
    color: var(--accent-green);
    cursor: pointer;
    padding: 10px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.btn-action {
    background: var(--accent-green);
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-action:hover {
    background: #1f4620;
}

.btn-action:active {
    transform: scale(0.98);
}

.menu-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    margin-top: 20px;
    text-align: center;
}

.submenu-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.submenu-container li {
    background: #f4f4f2;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--accent-green);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
}

.submenu-container li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.modal-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: 3000;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 400px;
    padding: 0;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: var(--accent-green);
    font-size: 18px;
}

.modal-body {
    padding: 20px;
    color: var(--text-main);
}

.modal-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-footer .btn-action {
    margin: 0;
    flex: 1;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-green);
}

p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
}
