/* Global Styles */
:root {
    --mecuido-purple: #8a2be2;
    --mecuido-orange: #ff7f50;
    --mecuido-green: #4CAF50;
    --mecuido-pink: #ff69b4;
    --mecuido-gradient: linear-gradient(135deg, var(--mecuido-purple), var(--mecuido-orange), var(--mecuido-green));
    --card-background: #ffffff;
    --card-foreground: #333333;
}

/* ===== Profile Page (modern, clean) ===== */
.profile-page .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px;
}
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .profile-header {
        gap: 20px;
        margin-bottom: 24px;
    }
}
.avatar-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    flex: 0 0 auto;
}
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 24px;
    color: #374151;
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}
.profile-header__info .page-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
}
.profile-subtitle {
    color: #6b7280;
    margin-top: 2px;
    font-size: 0.95rem;
}
.alerts {
    margin-bottom: 16px;
}
.profile-grid {
    display: grid;
    gap: 20px;
}
@media (min-width: 960px) {
    .profile-grid {
        grid-template-columns: 1.25fr 1fr;
        gap: 24px;
    }
}
.profile-page .card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.profile-page .card-title {
    font-size: 1.1rem;
    margin: 0 0 12px;
    color: #111827;
}
.profile-page .form .form-group {
    margin-bottom: 14px;
}
.profile-page .form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.profile-page .form-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.95rem;
    background: #fff;
    color: #111827;
}
.profile-page .form-input:focus {
    outline: 2px solid #bfdbfe;
    outline-offset: 1px;
    border-color: #93c5fd;
}
.profile-page .form-help {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}
.profile-page .btn {
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
}
.profile-page .btn-primary {
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
}
.profile-page .btn-primary[disabled],
.profile-page .btn-primary[aria-busy="true"] {
    opacity: .8;
    cursor: not-allowed;
}
.profile-page .btn-primary[data-loading="true"] {
    position: relative;
}
.profile-page .btn-primary[data-loading="true"]::after {
    content: '…';
    margin-left: 6px;
}
.profile-page .alert {
    border-radius: 10px;
    padding: 10px 12px;
}
.profile-page .alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.profile-page .alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== Dashboard Page (modern, clean) ===== */
.dashboard-page .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px;
}

.dashboard-page section {
    margin-bottom: 20px;
}
@media (min-width: 960px) {
    .dashboard-page section { margin-bottom: 24px; }
}

.dashboard-title {
    font-size: 1.6rem;
    line-height: 1.3;
    color: #111827;
    margin: 0 0 6px 0;
}
.dashboard-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Cards base (reuse global .card with slight tweaks inside dashboard) */
.dashboard-page .card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.dashboard-page .card-body { padding: 16px; }
@media (min-width: 768px) { .dashboard-page .card-body { padding: 18px; } }
.dashboard-page .card-title { font-size: 1.05rem; color: #111827; margin: 0 0 10px; }
.dashboard-page .card-subtitle { color: #6b7280; font-size: 0.9rem; }

/* Period filter */
.dashboard-page .period-filter { position: sticky; top: 12px; z-index: 2; }
.dashboard-page .period-filter-body { display: flex; flex-direction: column; gap: 12px; }
.dashboard-page .filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.dashboard-page .filter-buttons .btn {
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 600;
}
.dashboard-page .filter-buttons .btn:hover { background: #f9fafb; }
.dashboard-page .btn-sm { font-size: 0.85rem; padding: 6px 10px; }
.dashboard-page .filter-buttons .btn.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.dashboard-page .custom-range { display: flex; align-items: center; gap: 10px; }
.dashboard-page .custom-range input[type="date"] {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
    color: #111827;
}
.dashboard-page .custom-range .mx-2 { color: #6b7280; }

/* Summary cards */
.dashboard-page .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
@media (min-width: 960px) { .dashboard-page .cards-grid { gap: 16px; } }
.dashboard-page .summary-card .summary-icon {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    background: #eef2ff; color: #3730a3; border-radius: 10px; margin-bottom: 10px;
}
.dashboard-page .summary-card .card-text { color: #374151; white-space: pre-line; }
.dashboard-page .summary-card .card-highlight {
    margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #f1f5f9; color: #0f172a; font-weight: 500;
}

/* Line chart */
.dashboard-page .line-chart-card .card-body { overflow: hidden; }
.dashboard-page .line-chart svg { display: block; }

/* Ranking */
.dashboard-page .ranking-grid {
    display: grid;
    gap: 12px;
}
@media (min-width: 960px) { .dashboard-page .ranking-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.dashboard-page .rank-item { margin-bottom: 10px; }
.dashboard-page .rank-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.dashboard-page .rank-label { color: #111827; font-weight: 500; }
.dashboard-page .rank-value { color: #6b7280; font-size: 0.9rem; }
.dashboard-page .rank-bar { height: 8px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.dashboard-page .rank-bar-fill { height: 100%; background: linear-gradient(90deg, #60a5fa, #2563eb); border-radius: 999px; }

/* Alimentação */
.dashboard-page .alimentacao-grid {
    display: grid;
    gap: 12px;
}
@media (min-width: 960px) { .dashboard-page .alimentacao-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* Alertas */
.dashboard-page .alert-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f9fafb;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 10px;
    margin: 0 8px 8px 0;
    font-size: 0.9rem;
}

/* Heatmap */
.dashboard-page .heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18px, 1fr));
    gap: 6px;
}
.dashboard-page .heatmap-cell {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}
.dashboard-page .heatmap-cell:hover { transform: scale(1.06); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }

/* CTA */
.dashboard-page .cta-body { display: flex; flex-direction: column; gap: 12px; }
.dashboard-page .cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dashboard-page .cta-actions .btn { border-radius: 10px; }
.dashboard-page .cta-actions .btn.btn-primary { background: #2563eb; border: 1px solid #2563eb; }

/* Loading & Error */
.dashboard-page .loading-container,
.dashboard-page .error-container {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px;
}
.dashboard-page .loading-icon { color: #2563eb; font-size: 28px; }
.dashboard-page .error-icon { color: #ef4444; font-size: 28px; }

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.min-h-screen {
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: linear-gradient(to right, #fff, #f8f0ff, #fff);
    color: #333;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid;
    border-image: var(--mecuido-gradient) 1;
    position: relative;
    z-index: 100;
}

.sticky-header {
    position: sticky;
    top: 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container.flex {
    display: flex;
}

.logo-container .items-center {
    align-items: center;
}

.logo-container .space-x-4 > * + * {
    margin-left: 1rem;
}

.logo-container .relative {
    position: relative;
}

.logo-container .w-16 {
    width: 4rem;
}

.logo-container .h-16 {
    height: 4rem;
}

.logo-container .rounded-full {
    border-radius: 50%;
}

.logo-container .overflow-hidden {
    overflow: hidden;
}

.logo-container .mecuido-gradient {
    background: var(--mecuido-gradient);
}

.logo-container .p-1 {
    padding: 0.25rem;
}

.logo-container .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.logo-container .transform {
    transform: translateZ(0);
}

.logo-container .hover\:scale-105:hover {
    transform: scale(1.05);
}

.logo-container .transition-transform {
    transition-property: transform;
}

.logo-container .duration-300 {
    transition-duration: 300ms;
}

.logo-container .absolute {
    position: absolute;
}

.logo-container .-top-1 {
    top: -0.25rem;
}

.logo-container .-right-1 {
    right: -0.25rem;
}

.logo-container .w-6 {
    width: 1.5rem;
}

.logo-container .h-6 {
    height: 1.5rem;
}

.logo-container .bg-mecuido-orange {
    background-color: var(--mecuido-orange);
}

.logo-container .flex {
    display: flex;
}

.logo-container .items-center {
    align-items: center;
}

.logo-container .justify-center {
    justify-content: center;
}

.logo-container img.w-full {
    width: 100%;
}

.logo-container img.h-full {
    height: 100%;
}

.logo-container img.object-cover {
    object-fit: cover;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--mecuido-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-top: -5px;
}

.desktop-menu {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--mecuido-purple);
}

.btn-login {
    background-color: var(--mecuido-purple);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-login:hover {
    background-color: #7526c1;
}

.mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.mobile-menu-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-item {
    margin-bottom: 0.8rem;
}

.mobile-nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
}

.btn-login-mobile {
    background-color: var(--mecuido-purple);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Hero Section */
.hero {
    background: var(--mecuido-gradient);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    width: 120px;
    height: 120px;
    background-color: white;
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-highlight {
    color: #ffeb3b;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-app-store {
    background-color: #000;
    color: white;
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-google-play {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-app-store:hover, .btn-google-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.btn-text {
    margin-left: 0.8rem;
    text-align: left;
}

.btn-small-text {
    font-size: 0.7rem;
    opacity: 0.8;
}

.btn-large-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: white;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--mecuido-purple);
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(to bottom right, #fff, #f8f0ff);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--mecuido-purple);
    background: linear-gradient(135deg, var(--mecuido-purple), var(--mecuido-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--mecuido-purple);
}

.feature-description {
    color: #666;
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background: linear-gradient(to bottom right, #f8f0ff, #fff5f0);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.benefits-image {
    background: linear-gradient(to bottom right, #f0e6ff, #ffe6e6);
    border-radius: 16px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefits-icon {
    font-size: 5rem;
    color: var(--mecuido-purple);
}

.benefits-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefits-list {
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.benefit-icon-container {
    width: 32px;
    height: 32px;
    background-color: var(--mecuido-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.benefit-icon {
    font-size: 1rem;
    color: white;
}

.benefit-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-description {
    color: #666;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: linear-gradient(to bottom right, #f8f0ff, #fff);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--mecuido-purple);
}

.testimonial-role {
    font-size: 0.9rem;
    color: #666;
}

/* Call to Action Section */
.cta {
    padding: 5rem 0;
    background: var(--mecuido-gradient);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.download-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.download-badge {
    max-width: 200px;
    transition: transform 0.3s;
}

.download-badge:hover {
    transform: scale(1.05);
}

.qr-code-container {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.qr-code {
    width: 150px;
    height: 150px;
    background-color: white;
    margin: 0 auto 1.5rem;
    border-radius: 10px;
}

.qr-code-text {
    font-size: 1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #222;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 500px;
    margin: 0 auto;
}

.footer-logo {
    width: 60px;
    height: 60px;
    background: var(--mecuido-gradient);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: #aaa;
    margin-bottom: 2rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #444;
    padding-top: 1.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--mecuido-purple);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 99;
}

.back-to-top:hover {
    background-color: #7526c1;
    transform: translateY(-5px);
}

/* Main Content Styles */
.main {
    padding: 2rem 0;
}

.card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Feature Card Styles */
.bg-card {
    background-color: var(--card-background);
}

.text-card-foreground {
    color: var(--card-foreground);
}

.mecuido-card-gradient {
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
    border: 0;
}

/* Color utility classes */
.text-mecuido-purple {
    color: var(--mecuido-purple);
}

.bg-mecuido-purple {
    background-color: var(--mecuido-purple);
}

.text-mecuido-orange {
    color: var(--mecuido-orange);
}

.bg-mecuido-orange {
    background-color: var(--mecuido-orange);
}

.text-mecuido-green {
    color: var(--mecuido-green);
}

.bg-mecuido-green {
    background-color: var(--mecuido-green);
}

.text-mecuido-pink {
    color: var(--mecuido-pink);
}

.bg-mecuido-pink {
    background-color: var(--mecuido-pink);
}

/* Utility classes for icon styling */
.text-white {
    color: white;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

/* Additional utility classes for feature cards */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.rounded-full {
    border-radius: 9999px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-semibold {
    font-weight: 600;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-gray-600 {
    color: #718096;
}

/* Grid layout utility classes */
.grid {
    display: grid;
}

.gap-8 {
    gap: 2rem;
}

/* Responsive grid columns */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Additional card styling */
.rounded-3xl {
    border-radius: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

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

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.transition-shadow {
    transition-property: box-shadow;
}

.duration-300 {
    transition-duration: 300ms;
}

.border-0 {
    border-width: 0px;
}

.p-0 {
    padding: 0;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--mecuido-purple);
}

.card-subtitle {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
}

.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

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

/* Auth Pages Styles */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #f8f0ff, #fff5f0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* remove outer padding so the left gradient can touch the viewport edges */
}

/* Full-width container without side padding on auth pages */
.auth-page .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.auth-container {
    width: 100%;
    display: flex;
    min-height: 100vh; /* ensure full viewport height so the left panel fills completely */
}

.auth-form-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
}

/* Force light theme for form controls within auth pages (ignore OS/browser dark mode) */
.auth-page, .auth-page .auth-form-container, .auth-page .auth-card {
    color-scheme: light;
}

.auth-page input,
.auth-page select,
.auth-page textarea {
    background-color: #ffffff !important;
    color: #111111 !important;
    border-color: #d1d5db !important; /* gray-300 */
    caret-color: #111111;
}

.auth-page input::placeholder,
.auth-page textarea::placeholder {
    color: #9ca3af; /* gray-400 */
}

.auth-page input:focus,
.auth-page select:focus,
.auth-page textarea:focus {
    border-color: var(--mecuido-purple) !important;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.15);
    outline: none;
}

.auth-page input[type="checkbox"],
.auth-page input[type="radio"] {
    accent-color: var(--mecuido-purple);
}

/* Ensure autofilled fields stay light in WebKit-based browsers */
.auth-page input:-webkit-autofill,
.auth-page input:-webkit-autofill:hover,
.auth-page input:-webkit-autofill:focus {
    -webkit-text-fill-color: #111111;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
    box-shadow: 0 0 0px 1000px #ffffff inset;
}

.logo-container-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.logo-mobile {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--mecuido-gradient);
    margin: 0 auto;
}

.auth-artwork-container {
    display: none;
    width: 50%;
    background: linear-gradient(135deg, #845EC2, #FFB347, #4ADE80);
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-artwork {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    height: 100%;
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-artwork::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.2), transparent);
    z-index: -1;
}

.auth-logo {
    width: 140px;
    height: 140px;
    background-color: transparent; /* remover contorno branco */
    border-radius: 50%;
    margin-bottom: 2rem;
    overflow: hidden; /* recorte limpo da imagem dentro do círculo */
}

/* Logo image inside the circle */
.auth-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto; /* sem margem para não criar moldura */
}

.auth-icon-container {
    margin-bottom: 1.5rem;
}

.auth-icon {
    font-size: 4rem;
    opacity: 0.8;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.auth-text {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 400px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--mecuido-purple);
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
}

.input-with-icon .form-input {
    padding-left: 40px;
}

.btn {
    display: inline-block;
    background-color: var(--mecuido-purple);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
}

.btn:hover {
    background-color: #7526c1;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-recover {
    background-color: var(--mecuido-green);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-recover:hover {
    background-color: #3d8b40;
    transform: translateY(-3px);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.loading-spinner {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.form-links {
    margin-top: 1.5rem;
    text-align: center;
}

.form-link {
    color: var(--mecuido-purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.form-link:hover {
    color: #7526c1;
    text-decoration: underline;
}

.back-to-site {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.back-link:hover {
    color: #333;
}

.back-link .material-icons {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* Dashboard Styles */

/* ========================= */
/* Admin Layout (Dashboard+) */
/* ========================= */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f4f6f9;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--mecuido-purple), var(--mecuido-orange));
    color: #fff;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar.collapsed {
    width: 72px;
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 12px 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-sidebar .brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.admin-sidebar .brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    padding: 4px;
    z-index: 999;
}

.admin-sidebar .brand-text {
    font-weight: 700;
    font-size: 0.95rem;
}

.admin-sidebar .sidebar-toggle {
    background: transparent;
    color: #fff;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
}

.admin-sidebar__nav {
    padding: 8px 8px 16px 8px;
}

.admin-sidebar .nav-item {
    border-left: 3px solid transparent;
    border-radius: 8px;
    margin: 4px 8px;
}

.admin-sidebar .nav-item.active {
    border-left-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.admin-sidebar .nav-icon {
    font-size: 22px;
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-header {
    height: 64px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-bottom: 2px solid;
    border-image: var(--mecuido-gradient) 1;
}

.admin-page-title {
    font-size: 1.25rem;
    color: #333;
}

.admin-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-chip .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mecuido-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-chip .user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-chip .user-name {
    font-weight: 600;
}

.user-chip .user-role {
    font-size: 0.75rem;
    color: #666;
}

.btn.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e9e9ef;
    color: #333;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.btn.btn-logout:hover {
    background: #f7f7fb;
}

.admin-content {
    flex: 1;
    padding: 20px;
}

.admin-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 12px 20px;
    text-align: center;
    color: #666;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        width: 72px;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--mecuido-purple);
}

/* Item List Styles */
.item-list {
    list-style: none;
}

.item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.item-icon {
    margin-right: 1rem;
    color: var(--mecuido-purple);
}

/* Utility Classes */
.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

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

.max-w-5xl {
    max-width: 64rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.font-bold {
    font-weight: 700;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.grid {
    display: grid;
}

.gap-12 {
    gap: 3rem;
}

.items-center {
    align-items: center;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.hover\:bg-white\/20:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.transition-all {
    transition-property: all;
}

.duration-300 {
    transition-duration: 300ms;
}

.cursor-pointer {
    cursor: pointer;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.w-full {
    width: 100%;
}

.max-w-\[280px\] {
    max-width: 280px;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.transition-transform {
    transition-property: transform;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.text-white {
    color: white;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: 0.875rem;
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

.bg-white {
    background-color: white;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.w-40 {
    width: 10rem;
}

.h-40 {
    height: 10rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.grid-cols-8 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.gap-1 {
    gap: 0.25rem;
}

.w-2 {
    width: 0.5rem;
}

.h-2 {
    height: 0.5rem;
}

.bg-black {
    background-color: black;
}

.text-xl {
    font-size: 1.25rem;
}

.opacity-90 {
    opacity: 0.9;
}

.mecuido-gradient {
    background: var(--mecuido-gradient);
}

/* Auth-specific gradient utility */
.mecuido-auth-gradient {
    background: linear-gradient(135deg, #845EC2, #FFB347, #4ADE80);
}

/* Responsive Styles */
@media (min-width: 768px) {
    .desktop-menu {
        display: block;
    }

    .mobile-menu-button {
        display: none;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-options {
        align-items: flex-start;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:text-4xl {
        font-size: 2.25rem;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Auth pages responsive styles */
    .auth-form-container {
        width: 50%;
    }

    .auth-artwork-container {
        display: block;
    }

    .logo-container-mobile {
        display: none;
    }

    /* Specific styles for forgot-password page: keep the same auth gradient */
    .forgot-password-page .auth-artwork-container {
        background: linear-gradient(135deg, #845EC2, #FFB347, #4ADE80);
    }
}
