:root {
    
    --primary-color: #0d9488;
    
    --primary-hover: #0f766e;
    
    --primary-light: #14b8a6;
    
    --accent-color: #f97316;
    
    --accent-hover: #ea580c;
    
    --secondary-color: #64748b;
    
    --success-color: #10b981;
    
    --warning-color: #b45309;
    
    --danger-color: #b91c1c;
    
    --background-color: #f0fdfa;
    
    --surface-color: #ffffff;
    --text-color: #0f172a;
    
    --text-muted: #475569;
    
    --border-color: #e2e8f0;
    

    
    --primary-gradient: linear-gradient(135deg, #0d9488 0%, #06b6d4 50%, #0891b2 100%);
    --accent-gradient: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --surface-gradient: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    --hero-gradient: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #99f6e4 100%);

    
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(13, 148, 136, 0.3);

    
    --container-width: 1100px;
    --header-height: 70px;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background-color);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(20, 184, 166, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}


.hidden {
    display: none !important;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}


.main-header {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.97) 0%, rgba(13, 148, 136, 0.97) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    color: #f8fafc;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.2);
}


.tags-nav {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.tags-nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 48px;
}

.tags-nav-container::-webkit-scrollbar {
    display: none;
}

.tag-nav-item {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tag-nav-item:hover {
    color: var(--tag-color, var(--primary-color));
    background: color-mix(in srgb, var(--tag-color, var(--primary-color)) 10%, transparent);
    border-color: color-mix(in srgb, var(--tag-color, var(--primary-color)) 30%, transparent);
}

.tag-nav-item:active {
    transform: scale(0.98);
}


@media (max-width: 768px) {
    .tags-nav-container {
        padding: 0 0.75rem;
        gap: 0.375rem;
    }
    
    .tag-nav-item {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: white;
    text-decoration: none;
    background: transparent !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.logo-text {
    color: white;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-desktop a:not(.btn) {
    font-weight: 500;
    color: #cbd5e1;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-desktop a:not(.btn):hover {
    color: white;
}

.user-menu,
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #fef3c7;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fef9c3;
}

.admin-link svg {
    width: 16px;
    height: 16px;
}

.user-greeting {
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}


.search-container {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    pointer-events: none;
    transition: color var(--transition-fast);
}

#search-input {
    width: 180px;
    padding: 0.5rem 2.5rem 0.5rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    transition: all var(--transition-base);
    color: var(--text-color);
}

#search-input::placeholder {
    color: #94a3b8;
}

#search-input:focus {
    outline: none;
    width: 280px;
    border-color: white;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#search-input:focus + .search-icon,
.search-input-wrapper:focus-within .search-icon {
    color: var(--primary-color);
}

.search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.search-clear:hover {
    background: #f1f5f9;
    color: var(--text-color);
}


.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    overflow: hidden;
    z-index: 200;
    display: none;
    animation: dropdownFade 0.2s ease;
}

.search-suggestions.active {
    display: block;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
}

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

.search-suggestion-item:hover,
.search-suggestion-item.highlighted {
    background: #f0fdfa;
}

.search-suggestion-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.875rem;
    flex-shrink: 0;
}

.search-suggestion-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.search-suggestion-content {
    flex: 1;
    min-width: 0;
}

.search-suggestion-title {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-no-results svg {
    width: 32px;
    height: 32px;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.search-loading {
    padding: 1.5rem;
    text-align: center;
}

.search-loading .spinner {
    margin: 0 auto;
    border-top-color: var(--primary-color);
}

.search-view-all {
    display: block;
    padding: 0.875rem 1rem;
    text-align: center;
    background: #f8fafc;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    transition: background var(--transition-fast);
    text-decoration: none;
}

.search-view-all:hover {
    background: #f0fdfa;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.9rem;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 14px -2px rgba(13, 148, 136, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -2px rgba(13, 148, 136, 0.5);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px -2px rgba(13, 148, 136, 0.4);
}

.btn-outline {
    border-color: var(--border-color);
    color: var(--text-color);
    background: white;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(13, 148, 136, 0.05);
}

.btn-outline:active {
    background: rgba(13, 148, 136, 0.1);
}

.btn-secondary {
    background-color: white;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: var(--text-color);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border-color: transparent;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    transform: translateY(-1px);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}


main {
    flex: 1;
    padding: 3rem 0;
}


.card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(13, 148, 136, 0.3);
}

.card:hover::after {
    transform: scaleX(1);
}

.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.card:hover h3 {
    color: var(--primary-color);
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Removed unused: .hero, .hero-actions, .features, .feature-card - use home-hero/static-hero/static-feature-card instead */

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    background: white;
    transition: all var(--transition-fast);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #cbd5e1;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}


/* Removed unused: .custom-checkbox */

.voting-option {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 2px solid #99f6e4;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.voting-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}

.voting-option:hover {
    border-color: var(--primary-light);
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    transform: translateX(4px);
}

.voting-option:hover::before {
    transform: scaleY(1);
}

.voting-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ccfbf1 0%, #5eead4 100%);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.voting-option.selected::before {
    transform: scaleY(1);
}

.voting-option input[type="radio"],
.voting-option input[type="checkbox"] {
    margin-right: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}


.main-footer {
    background-color: transparent;
    border-top: none;
    padding: 0;
    margin-top: auto;
    font-size: 0.9rem;
}

.main-footer .container,
.main-footer .footer-container {
    background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
    color: #99f6e4;
    padding: 3rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info {
    flex: 1;
    min-width: 200px;
}

.footer-nav {
    flex-shrink: 0;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Removed unused: .footer-content */

.footer-section h4 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: inherit;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

/* Removed unused: .social-links */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

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

.badge-publico {
    background: #ccfbf1;
    color: #0f766e;
}

.badge-privado {
    background: #fef3c7;
    color: #92400e;
}

.badge-ofuscado {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-ativo {
    background: #d1fae5;
    color: #047857;
}

.badge-fechado {
    background: #b91c1c;
    color: white;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning,
.badge-pendente {
    background: #fef3c7;
    color: #92400e;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.detail-alert {
    margin-bottom: 1.5rem;
}

/* Removed unused: .auth-wrapper, .auth-card - use auth-container from auth.css instead */

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

.search-form {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    padding-left: 1rem;
}

.user-greeting {
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    color: inherit;
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
    margin-left: 1rem;
}


.btn-header {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-outline.btn-header {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.btn-outline.btn-header:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
}


.nav-mobile {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.mobile-search-btn,
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.mobile-search-btn:hover,
.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}


.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 200;
    display: none;
    flex-direction: column;
}

.mobile-search-overlay.active {
    display: flex;
}

.mobile-search-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
}

.mobile-search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: white;
}

.mobile-search-input:focus {
    outline: none;
}

.mobile-search-suggestions {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.mobile-search-result {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-color);
}

.mobile-search-result:hover {
    background: #f8fafc;
}

.mobile-search-result-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.mobile-search-result-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mobile-search-all {
    display: block;
    padding: 1rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-search-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}


.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: white;
    z-index: 200;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-drawer.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    color: white;
}

.mobile-menu-title {
    font-weight: 600;
    font-size: 1.125rem;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
}

.mobile-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    background: #f8fafc;
}

.mobile-menu-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

.mobile-menu-user-info {
    display: flex;
    flex-direction: column;
}

.mobile-menu-user-name {
    font-weight: 600;
    color: var(--text-color);
}

.mobile-menu-user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-color);
    font-weight: 500;
    transition: background var(--transition-fast);
}

.mobile-menu-item:hover {
    background: #f8fafc;
}

.mobile-menu-item svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.mobile-menu-item-primary {
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    color: #0f766e;
}

.mobile-menu-item-primary svg {
    color: #0d9488;
}

.mobile-menu-item-danger {
    color: #dc2626;
}

.mobile-menu-item-danger svg {
    color: #dc2626;
}

.mobile-menu-item-admin {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.mobile-menu-item-admin svg {
    color: #b45309;
}

.mobile-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.75rem 0;
}


@media (max-width: 1024px) {
    #search-input {
        width: 140px;
    }
    
    #search-input:focus {
        width: 200px;
    }
    
    .user-greeting {
        max-width: 80px;
    }
    
    .nav-desktop {
        gap: 0.75rem;
    }
}


@media (max-width: 900px) {
    .nav-desktop {
        display: none;
    }

    .nav-mobile {
        display: flex;
    }

    .main-header .container {
        padding: 0 1rem;
    }

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

    .footer-section {
        margin-top: 1rem;
    }

    
    .voting-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .share-buttons {
        justify-content: center;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .action-buttons .btn {
        width: 100%;
    }
}


@media (max-width: 768px) {
    .footer-nav ul {
        align-items: flex-start;
    }

    .footer-container {
        flex-direction: column;
    }
}


.referendo-details {
    max-width: 100%;
    margin: 2rem auto 3rem;
}

.card-referendo {
    padding: 0;
    overflow: hidden;
}

.card-referendo:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.card-referendo::after {
    display: none;
}

.referendo-header {
    padding: 2rem;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    border-bottom: none;
    position: relative;
    z-index: 1;
}

.referendo-badges {
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.referendo-title {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
    line-height: 1.3;
    color: #fff;
}

.referendo-meta {
    font-size: 0.9rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 24px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.referendo-conteudo {
    padding: 1.5rem 2rem 2rem;
}

.referendo-description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.voting-title {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.options-list {
    margin-bottom: 1.5rem;
}

.voting-option-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
}

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

.voting-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.referendo-stats {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1.5rem;
    text-align: center;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: help;
    margin-left: 0.25rem;
    position: relative;
}

.stat-value {
    font-weight: 600;
}

.tooltip-popup {
    position: fixed;
    background: #1e293b;
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    width: 280px;
    text-align: left;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

#qr-code-container {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin: auto;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.invite-header {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.invite-header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.invite-title {
    margin: 0;
}

.invite-subtitle {
    color: var(--text-muted);
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid #bbf7d0;
}

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

.invite-card {
    padding: 2rem;
}

.invite-card-title {
    margin-bottom: 1.5rem;
}


.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.share-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
    font-weight: 500;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-share:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-facebook {
    background-color: #1877f2;
}

.btn-twitter {
    background-color: #000000;
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-linkedin {
    background-color: #0a66c2;
}

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

.btn-copy.copied {
    background-color: var(--success-color);
}

.btn-qr {
    background-color: #8b5cf6;
    
}

.btn-qr:hover {
    background-color: #7c3aed;
    
}

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

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

.invite-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
}

.btn-full-width,
.btn-full {
    width: 100%;
}

.invite-table-container {
    overflow-x: auto;
}

.invite-table {
    width: 100%;
    border-collapse: collapse;
}

.invite-table tr {
    border-bottom: 1px solid var(--border-color);
}

.invite-table th {
    text-align: left;
    padding: 0.75rem 0;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.invite-table th.text-right {
    text-align: right;
}

.invite-table td {
    padding: 0.75rem 0;
}

.invite-table td.text-right {
    text-align: right;
}

.invite-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.badge-aceite {
    background: #dcfce7;
    color: #166534;
}

.badge-pendente {
    background: #fef9c3;
    color: #854d0e;
}

.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .invite-grid {
        grid-template-columns: 1fr;
    }
}


.create-container {
    max-width: 100%;
    margin: 2rem auto 3rem;
}

.page-title {
    margin-bottom: 2rem;
}

.form-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.section-title {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

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

.form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
}

.form-input[readonly],
.form-input[disabled] {
    background: #f3f4f6;
    cursor: not-allowed;
}

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

.checkbox-label {
    display: inline;
}

.tag-label {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-checkbox {
    margin-right: 0.5rem;
}

.tag-text {
    font-weight: 500;
}

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

.lock-icon {
    color: #6b7280;
    margin-left: 0.5rem;
}

.section-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}


.pagination {
    margin: 3rem 0rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
    text-decoration: none;
    min-width: 40px;
}

.pagination-button:hover:not(.disabled):not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f8fafc;
}

.pagination-button.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.pagination-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: var(--text-muted);
}


@media (max-width: 768px) {
    .pagination {
        margin-top: 2rem;
    }

    .pagination-button {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
        min-width: 36px;
    }

    
    .pagination-button:first-child,
    .pagination-button:last-child {
        display: none;
    }
}




main {
    animation: pageLoad 0.4s ease-out;
}

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

/* Removed unused: .scroll-reveal */

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.4s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }
.stagger-item:nth-child(7) { animation-delay: 0.35s; }
.stagger-item:nth-child(8) { animation-delay: 0.4s; }

@keyframes staggerIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Removed unused: @keyframes pulse, .pulse */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease;
}


.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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


.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
}


a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


::selection {
    background: rgba(13, 148, 136, 0.2);
    color: var(--text-color);
}


html {
    scroll-behavior: smooth;
}

/* Removed unused: .animated-link */

.tooltip-popup {
    animation: tooltipFade 0.2s ease;
}

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


/* Badge styles consolidated above */

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}