:root {
    --primary: #398a3b;
    /* Verde ASPAFF */
    --primary-dark: #2d6d2f;
    --secondary: #262122;
    /* Preto/Cinza Escuro ASPAFF */
    --accent: #009dcc;
    /* Azul ASPAFF */
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --pago: #398a3b;
    --pendente: #ef4444;
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    background: transparent !important;
    background-color: transparent !important;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Garantir que logos apareçam originais e sem fundos em qualquer lugar */
.nav-logo img,
footer .nav-logo img {
    filter: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.hidden {
    display: none !important;
}

.portal-page {
    animation: fadeIn 0.5s ease-out;
}

/* History Section */
.history-section {
    max-width: 900px;
    margin: 50px auto;
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.history-text p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.btn-admin {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    transition: transform 0.2s, background 0.3s;
    white-space: nowrap;
}

.btn-admin:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-hero {
    font-size: 1.1rem;
    padding: 15px 35px;
    height: auto;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.status-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-tag.online {
    background: #dcfce7;
    color: #166534;
}

.status-tag.maintenance {
    background: #fef9c3;
    color: #854d0e;
}

/* Hero Section */
.hero {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%), url('https://www.transparenttextures.com/patterns/cubes.png');
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Sections */
section {
    padding: 100px 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: -30px auto 50px;
    background: white;
    padding: 10px;
    border-radius: 100px;
    display: flex;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 10;
}

.search-container input {
    flex: 1;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    outline: none;
    border-radius: 100px;
}

/* Cards & Tables */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.assoc-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.assoc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary);
}

.assoc-card .avatar {
    width: 80px;
    height: 80px;
    background: transparent;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    overflow: hidden;
}

/* Table Style */
.table-wrapper {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8fafc;
    padding: 20px;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid #e2e8f0;
}

td {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-pago {
    background: #dcfce7;
    color: #166534;
}

.status-pendente {
    background: #fee2e2;
    color: #991b1b;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background: #e2e8f0;
    border-radius: 10px;
    height: 10px;
    margin: 15px 0 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.proj-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 60px 10%;
    text-align: center;
    margin-top: 50px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

@media (max-width: 992px) {
    nav {
        padding: 0 5%;
    }
}

@media (max-width: 768px) {
    #mobile-menu-btn {
        display: block !important;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 15px;
        text-align: center;
        border-top: 1px solid #eee;
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        height: 50vh;
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    section {
        padding: 60px 20px;
    }

    .history-section {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .assoc-card {
        padding: 15px;
    }

    .btn-admin span {
        display: none;
    }

    .btn-admin {
        padding: 10px;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-hero {
        width: 100% !important;
        max-width: 300px;
        height: 55px !important;
        border-radius: 15px !important;
        font-size: 1.1rem !important;
        margin-top: 20px;
        justify-content: center;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: #FFF;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* Toasts */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid var(--primary);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modals & Forms (Synced with Admin Style) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlide 0.4s ease-out;
}

@keyframes modalSlide {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Custom Scrollbar for Modal (Mirror Admin) */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.2s;
    font-size: 1rem;
    background: #fff;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(57, 138, 59, 0.15);
    background: #fff;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 480px) {
    .btn-group {
        flex-direction: column-reverse;
    }

    .modal-content {
        padding: 1.5rem;
    }
}

.btn {
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(57, 138, 59, 0.3);
}

.btn-admin {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-admin:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

#foto-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
    margin-top: 10px;
}

/* Portfolio Section */
.portfolio-section {
    background-color: white;
    padding: 80px 10%;
    margin: 40px auto;
    border-radius: 40px;
    box-shadow: var(--shadow);
    max-width: 1200px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background: #f8fafc;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.portfolio-images {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.portfolio-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-images img {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 20px;
    text-align: left;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 40px 20px;
        border-radius: 20px;
    }
}

.history-text strong {
    color: var(--primary);
}

.axis-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
    text-align: center;
}

.axis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.axis-card h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.axis-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .history-container {
        padding: 0 20px;
    }

    .project-highlight-box {
        padding: 30px 20px !important;
    }
}