/* Global Styles */
:root {
    --brand-light: #e9eee3;
    --brand-primary: #a6c50f;
    --brand-dark: #56961c;
    --brand-secondary: #008354;
    --brand-accent: #efb61b;
    --primary-color: var(--brand-primary);
    --primary-dark: var(--brand-dark);
    --primary-light: var(--brand-light);
    --secondary-color: var(--brand-dark);
    --secondary-dark: var(--brand-dark);
    --danger-color: var(--brand-accent);
    --warning-color: var(--brand-accent);
    --success-color: var(--brand-dark);
    --info-color: var(--brand-primary);
    --text-color: #333;
    --text-light: #666;
    --border-color: var(--brand-primary);
    --bg-color: var(--brand-light);
    --white: #fff;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-title {
    margin: 0;
    min-width: 0;
    flex: 1;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    max-width: 100%;
}

.brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

.brand-logo-eproce {
    height: 70px;
    max-width: 70px;
    flex-shrink: 0;
}

.brand-logo-funceme {
    height: 55px;
    max-width: min(58vw, 500px);
    min-width: 0;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.icon {
    font-size: 1.8rem;
}

.connection-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.connection-status.online .status-dot {
    background-color: var(--success-color);
}

.connection-status.offline .status-dot {
    background-color: var(--danger-color);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
    padding-bottom: 120px; /* Space for fixed footer */
}

/* Home Page */
.home-container {
    max-width: 900px;
    margin: 0 auto;
}

.welcome-section {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.welcome-section h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.weather-icon {
    font-size: 4rem;
    margin: 1rem 0;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.menu-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.menu-card--guest {
    opacity: 0.72;
    filter: grayscale(0.45);
    border: 2px dashed var(--border-color);
    background: var(--bg-color);
}

.menu-card--guest:hover {
    transform: none;
    box-shadow: 0 0 0 2px var(--primary-dark);
    border: none;
}

.menu-card--disabled {
    opacity: 0.5;
    filter: grayscale(0.6) brightness(0.95);
    border: 2px solid rgba(200, 200, 200, 0.4);
    background: rgba(200, 200, 200, 0.08);
    cursor: not-allowed;
    pointer-events: none;
}

.menu-card--disabled:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.menu-card-badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--warning-color);
    color: var(--white);
}

.menu-card-badge--disabled {
    background: rgba(100, 100, 100, 0.4);
    color: var(--text-light);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.menu-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Info Section */
.info-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-header h2 {
    margin: 0;
    color: var(--primary-color);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    box-shadow: var(--shadow);
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-back:hover {
    background: var(--primary-light);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-back:active {
    transform: translateY(0);
    box-shadow: var(--shadow);
}

.btn-back:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.form-section {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Pluviometro Cards */
.pluviometro-item,
.pluvio-card {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.pluvio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pluvio-header h4 {
    color: var(--primary-color);
}

.btn-remove {
    background: var(--danger-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

.location-group {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

.location-status {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.coords-display {
    margin-top: 1rem;
}

.coords-info {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.coords-info p {
    margin: 0.25rem 0;
}

/* Buttons */
.btn,
.btn-primary,
.btn-secondary,
.btn-location {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--text-light);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--text-color);
}

.btn-location {
    background: var(--success-color);
    color: var(--white);
    width: 100%;
    margin-top: 0.5rem;
}

.btn-location:hover {
    background: var(--secondary-dark);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: var(--brand-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-color);
}

.alert-error,
.alert-danger {
    background: var(--brand-light);
    color: var(--primary-dark);
    border: 1px solid var(--brand-accent);
}

.alert-warning {
    background: var(--brand-light);
    color: var(--primary-dark);
    border: 1px solid var(--brand-accent);
}

.alert-info {
    background: var(--brand-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-color);
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--white);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: var(--white);
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Tables */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.history-table th,
.history-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.history-table th {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--primary-color);
}

/* User Info */
.user-info {
    background: var(--primary-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer */
.app-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: var(--shadow-lg);

}

.app-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}

.app-footer p {
    margin: 0;
    line-height: 1.4;
}

.app-footer .btn-small {
    border-radius: 999px;
    font-weight: 600;
}

.app-footer .btn-small:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.install-prompt {
    margin-top: 0;
}

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

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    text-decoration: none;
    font-size: 1.2em;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.social-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

/* Status Messages */
.success {
    color: var(--success-color);
}

.error {
    color: var(--danger-color);
}

.warning {
    color: var(--warning-color);
}

.loading-small {
    color: var(--info-color);
}

/* Offline Page */
.offline-page {
    text-align: center;
    padding: 3rem 1rem;
}

.offline-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .app-title {
        font-size: 1.2rem;
    }

    .brand-link {
        gap: 0.55rem;
    }

    .brand-logo-eproce {
        height: 65px;
        max-width: 65px;
    }

    .brand-logo-funceme {
        height: 50px;
        max-width: min(60vw, 380px);
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button,
    .form-actions a {
        width: 100%;
        text-align: center;
    }

    .user-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .main-content {
        padding-bottom: 140px; /* More space for potentially taller footer on mobile */
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .app-footer {
        text-align: center;
    }

    .app-footer .container {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-section {
        width: 100%;
    }

    .footer-social {
        justify-content: center;
        gap: 0.8rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1em;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* PWA Install Button */
.install-button {
    margin-top: 1rem;
}

.install-button button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Toast notifications */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
}

.toast {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.info {
    border-left: 4px solid var(--info-color);
}

/* User Menu Popup */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-trigger {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
    font-weight: 500;
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.user-icon {
    font-size: 1.2rem;
}

.menu-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.user-menu-trigger:hover .menu-arrow {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px 12px 0 0;
    color: white;
}

.user-name-full {
    font-weight: 600;
    font-size: 1.1rem;
}

.user-name-short {
    font-weight: 500;
}

.user-phone {
    font-size: 0.85rem;
    opacity: 0.9;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
    width: fit-content;
}

.badge-success {
    background: rgba(86, 150, 28, 0.2);
    color: var(--primary-dark);
    border: 1px solid rgba(86, 150, 28, 0.4);
}

.badge-warning {
    background: rgba(239, 182, 27, 0.2);
    color: var(--brand-accent);
    border: 1px solid rgba(239, 182, 27, 0.4);
}

.user-menu-divider {
    height: 1px;
    background: var(--brand-light);
    margin: 0;
}

.user-menu-items {
    padding: 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
}

.menu-item:hover {
    background: var(--brand-light);
}

.menu-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.menu-item-logout {
    color: var(--brand-accent);
    font-weight: 500;
}

.menu-item-logout:hover {
    background: var(--brand-light);
}

/* Offcanvas Overlay */
.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1040;
}

.offcanvas-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* User Offcanvas */
.user-offcanvas {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
}

.user-offcanvas.show {
    right: 0;
}

/* Offcanvas Header */
.offcanvas-header {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid var(--brand-light);
}

.offcanvas-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.offcanvas-close:hover {
    background: var(--brand-light);
    color: var(--text-color);
}

/* Offcanvas Body */
.offcanvas-body {
    padding: 20px;
}

/* User Profile */
.user-profile {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-icon {
    font-size: 2rem;
    filter: brightness(0) invert(1);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    word-wrap: break-word;
}

.profile-phone {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* Offcanvas Divider */
.offcanvas-divider {
    height: 1px;
    background: var(--brand-light);
    margin: 20px 0;
}

/* Offcanvas Menu */
.offcanvas-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.offcanvas-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: none;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
}

.offcanvas-item:hover {
    background: var(--brand-light);
}

.item-icon {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.item-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
}

.item-arrow {
    font-size: 1.2rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.offcanvas-logout {
    color: var(--brand-accent);
    margin-top: 10px;
}

.offcanvas-logout:hover {
    background: var(--brand-light);
}

/* Modal de Instalação PWA */
.install-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 20, 20, 0.34);
    backdrop-filter: blur(2px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.install-modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(86, 150, 28, 0.18);
    padding: 32px 24px;
    max-width: 340px;
    width: 90vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.install-info {
    background: rgba(166, 197, 15, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 12px;
    border-radius: 6px;
    text-align: left;
}
.install-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
}
.install-modal .btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
.install-modal .btn-primary:hover {
    background: var(--primary-dark);
}
.install-modal .btn-secondary {
    background: #eee;
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 500;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
.install-modal .btn-secondary:hover {
    background: #e9eee3;
}

/* Botão de teste do modal PWA */
#testInstallButton {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}
#testInstallButton:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.install-prompt {
    margin: 0;
}
