/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores tema claro */
    --color-background: #ffffff;
    --color-foreground: #1a1a1a;
    --color-card: #ffffff;
    --color-card-foreground: #1a1a1a;
    --color-primary: #1a7f37;
    --color-primary-hover: #166d31;
    --color-secondary: #dc3545;
    --color-secondary-hover: #c82333;
    --color-muted: #e8f5e9;
    --color-muted-foreground: #2e7d32;
    --color-border: rgba(0, 0, 0, 0.1);
    --color-input-bg: #f3f3f5;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-hero-gradient: linear-gradient(135deg, #1a7f37 0%, #166d31 50%, #dc3545 100%);

    /* Logo cores */
    --color-logo-i-body: #1a7f37;
    --color-logo-i-dot: #dc3545;
    --color-logo-f: #1a7f37;
    --color-logo-rest: #000000;

    /* Espaçamentos */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Bordas */
    --radius: 0.625rem;

    /* Transições */
    --transition: all 0.3s ease;
}

/* Tema escuro */
.dark {
    --color-background: #0f1419;
    --color-foreground: #e6e8eb;
    --color-card: #1a1f26;
    --color-card-foreground: #e6e8eb;
    --color-primary: #2ea043;
    --color-primary-hover: #26843a;
    --color-secondary: #e63946;
    --color-secondary-hover: #d32f3f;
    --color-muted: #2d333b;
    --color-muted-foreground: #9198a1;
    --color-border: #373e47;
    --color-input-bg: #2d333b;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-logo-rest: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-foreground);
    background-color: var(--color-background);
    transition: var(--transition);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-header {
    display: inline-flex;
    align-items: center;
    user-select: none;

}

.logo-img {
    width: 8rem;
}

.logo img,
.logo-dark img,
.logo-footer img {
    display: block;
    width: auto;
    height: 4rem;
}

.logo-dark {
    display: none !important;
}

.dark .logo-light {
    display: none !important;
}

.dark .logo-dark {
    display: block !important;
}

.logo-i {
    color: var(--color-logo-i-body);
    position: relative;
}

.logo-i::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 6px;
    background: var(--color-logo-i-dot);
    border-radius: 50%;
}

.logo-f {
    color: var(--color-logo-f);
}

.logo-rest {
    color: var(--color-logo-rest);
}

/* Header */
.header {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--color-shadow);
}

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

.header-left {
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Navigation */
.nav-desktop {
    display: none;
    gap: 0.5rem;
}

.nav-mobile {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }

    .nav-mobile {
        display: none;
    }
}

.nav-btn,
.nav-btn-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--color-foreground);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-btn:hover,
.nav-btn-mobile:hover {
    background: var(--color-muted);
}

.nav-btn.active,
.nav-btn-mobile.active {
    background: var(--color-primary);
    color: white;
}

.btn-create-event,
.btn-create-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius);
    background: #1a7f37 !important;
    color: white !important;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.6;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-create-event:hover,
.btn-create-mobile:hover {
    background: #166d31 !important;
}

.badge,
.badge-mobile {
    background: white;
    color: var(--color-primary);
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-btn.active .badge,
.nav-btn.active .badge-mobile {
    background: white;
    color: var(--color-primary);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-muted);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--color-primary);
    color: white;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-info {
    display: none;
}

@media (min-width: 640px) {
    .user-info {
        display: block;
        text-align: right;
    }
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.user-type {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a7f37, #dc3545);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.avatar:hover {
    box-shadow: 0 0 0 2px var(--color-primary);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a7f37, #dc3545);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

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

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-foreground);
}

.btn-outline:hover {
    background: var(--color-muted);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-foreground);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-logout:hover {
    background: var(--color-muted);
}

.btn-block {
    width: 100%;
}

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

/* Filters */
.filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .filters {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {


    .filters {
        flex-direction: column;
        align-items: stretch;
    }
}

.filter-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    color: var(--color-foreground);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--color-muted);
}

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

.search-box {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted-foreground);
    pointer-events: none;
    width: 1rem;
    line-height: 1;
    text-align: center;
}

.search-box input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 1px solid var(--color-border);
    background: var(--color-input-bg);
    color: var(--color-foreground);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

/* Events Grid */
.events-section {
    margin-top: 2rem;
}

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

.events-header h2 {
    font-size: 1.5rem;
}

.events-count {
    color: var(--color-muted-foreground);
}

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

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Event Card */
.event-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.event-card:hover {
    box-shadow: 0 8px 16px var(--color-shadow);
    transform: translateY(-2px);
}

.event-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px var(--color-shadow);
}

.dark .event-badge {
    background: var(--color-card);
    color: var(--color-foreground);
}

.event-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.event-card-description {
    color: var(--color-muted-foreground);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-info {
    margin-top: auto;
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.event-info-workload {
    color: var(--color-primary);
    font-weight: 600;
}

.event-info-workload i {
    color: var(--color-primary);
}


.event-card-footer {
    padding: 1.5rem;
    padding-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-free {
    background: #e8f5e9;
    color: #1a7f37;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
}

.dark .badge-free {
    background: rgba(46, 160, 67, 0.2);
    color: #4ade80;
}

/* No Events */
.no-events {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.no-events i {
    font-size: 4rem;
    color: var(--color-muted-foreground);
}

.no-events p {
    font-size: 1.25rem;
    color: var(--color-muted-foreground);
}

.no-events-sub {
    font-size: 1rem;
    color: var(--color-muted-foreground);
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Views */
.view {
    display: none;
    min-height: calc(100vh - 400px);
}

.view.active {
    display: block;
}

.page-header {
    padding: 3rem 0 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--color-muted-foreground);
    font-size: 1.125rem;
}

/* Profile */
.profile-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.profile-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.profile-avatar .avatar {
    width: 100%;
    height: 100%;
    font-size: 2.5rem;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.profile-email {
    color: var(--color-muted-foreground);
    margin-bottom: 0.75rem;
}

.profile-badge {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.profile-bio {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.profile-bio h3 {
    margin-bottom: 0.75rem;
}

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

.stat {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat i {
    font-size: 2rem;
    color: var(--color-primary);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.stat-label {
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
}

/* Support */
.support-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.support-container h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.support-container>p {
    color: var(--color-muted-foreground);
    margin-bottom: 2rem;
}

.support-cards {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 3rem;
}

.support-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.support-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.support-card h3 {
    margin-bottom: 0.5rem;
}

.support-card p {
    color: var(--color-muted-foreground);
}

.faq {
    margin-top: 3rem;
}

.faq h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-item {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.faq-item p {
    color: var(--color-muted-foreground);
}

/* Footer */
.footer {
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    margin-top: 5rem;
}

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

.footer-col h4 {
    margin-bottom: 1rem;
}

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

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a,
.footer-col button {
    color: var(--color-muted-foreground);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-col a:hover,
.footer-col button:hover {
    color: var(--color-foreground);
}

.logo-footer {
    margin-bottom: 1rem;
}

.logo-footer img {
    height: 48px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--color-muted-foreground);
}

/* Modal */
.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;
    padding: 1rem;
}

.modal.active {
    display: flex;
    animation: modalOverlayIn 0.2s ease-out;
}

.modal.closing {
    display: flex;
    animation: modalOverlayOut 0.2s ease-out;
}

.modal-content {
    background: var(--color-card);
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px var(--color-shadow);
}

.modal.active .modal-content {
    animation: modalContentIn 0.24s ease-out;
}

.modal.closing .modal-content {
    animation: modalContentOut 0.24s ease-out;
}


@keyframes modalOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalOverlayOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes modalContentIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalContentOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--color-card);
    z-index: 1;
}

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--color-muted);
}


.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Event Details */
.event-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.event-detail-badge {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.event-detail-description {
    color: var(--color-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.event-detail-info {
    background: var(--color-muted);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--color-primary);
    font-size: 1.125rem;
}

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

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

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-input-bg);
    color: var(--color-foreground);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 127, 55, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

small {
    display: block;
    margin-top: 0.25rem;
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
    margin-top: 0.25rem;
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a7f37 0%, #166d31 50%, #dc3545 100%);
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.auth-header h1 {
    font-size: 1.75rem;
    margin: 1rem 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}



.auth-header p {
    color: var(--color-muted-foreground);
}

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

.auth-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    text-align: center;
}

.auth-footer p {
    color: var(--color-muted-foreground);
    margin-bottom: 0.75rem;
}

.auth-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

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

.auth-info {
    font-size: 0.875rem;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
}

.toast {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px var(--color-shadow);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-description {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.toast.success .toast-icon {
    color: var(--color-primary);
}

.toast.error .toast-icon {
    color: var(--color-secondary);
}

.toast.info .toast-icon {
    color: #2196F3;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
}

::-webkit-scrollbar-thumb {
    background: var(--color-muted);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-muted-foreground);
}

/* Responsividade adicional */
@media (max-width: 640px) {
    .header-content {
        flex-wrap: wrap;
    }

    .btn-logout span {
        display: none;
    }

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

    .modal-footer .btn {
        width: 100%;
    }
}

/* ============================
   Campo input[type=number]
   (campo workload sem CSS antes)
   ============================ */
input[type="number"] {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-input-bg);
    color: var(--color-foreground);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 127, 55, 0.1);
}

/* ============================
   Aba Meus Eventos (Publisher)
   ============================ */
#view-manage {
    padding-bottom: 4rem;
}

.manage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3rem 0 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.manage-header h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.manage-header>div>p {
    color: var(--color-muted-foreground);
    font-size: 1.1rem;
}

/* Card de evento na aba de gerenciamento */
#manage-events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.manage-event-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    overflow: hidden;
    transition: var(--transition);
}

.manage-event-card:hover {
    box-shadow: 0 6px 20px var(--color-shadow);
    transform: translateY(-1px);
}

/* Mobile: thumb compacta + info ao lado, ações abaixo */
@media (max-width: 600px) {
    .manage-event-card {
        grid-template-columns: 90px 1fr;
        grid-template-rows: auto auto;
    }

    .manage-event-actions {
        grid-column: 1 / -1;
        border-left: none !important;
        border-top: 1px solid var(--color-border) !important;
    }
}

/* Thumbnail com badge */
.manage-event-thumb {
    position: relative;
    overflow: hidden;
}

.manage-event-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.manage-event-card:hover .manage-event-thumb img {
    transform: scale(1.07);
}

.manage-event-badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    letter-spacing: 0.03em;
    backdrop-filter: blur(6px);
    z-index: 2;
    white-space: nowrap;
}

.badge-open {
    background: rgba(26, 127, 55, 0.9);
    color: white;
}

.badge-closed {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

/* Informações do evento */
.manage-event-info {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: center;
    min-width: 0;
}

.manage-event-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.manage-category-tag {
    background: var(--color-muted);
    color: var(--color-muted-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.manage-workload-tag {
    background: rgba(26, 127, 55, 0.12);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.dark .manage-workload-tag {
    background: rgba(46, 160, 67, 0.2);
}

.manage-event-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.manage-event-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--color-muted-foreground);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.manage-event-details span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.manage-event-details i {
    color: var(--color-primary);
}

/* Área de ações lateral */
.manage-event-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.1rem;
    justify-content: center;
    align-items: stretch;
    border-left: 1px solid var(--color-border);
}

/* Botões compactos para ações */
.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    border-radius: calc(var(--radius) - 2px);
    gap: 0.35rem;
}

.btn-close-event {
    background: rgba(220, 53, 69, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.btn-close-event:hover {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

.btn-reopen {
    background: rgba(26, 127, 55, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(26, 127, 55, 0.3);
}

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

.btn-chamada {
    background: linear-gradient(135deg, #1a7f37, #166d31);
    color: white;
    border: none;
}

.btn-chamada:hover:not(:disabled) {
    background: linear-gradient(135deg, #166d31, #125a29);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 127, 55, 0.3);
}

.btn-danger {
    background: rgba(220, 53, 69, 0.08);
    color: var(--color-secondary);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.btn-danger:hover {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

/* Tabela de participantes no modal */
.participants-table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted-foreground);
    font-weight: 600;
}

.participants-table tbody tr:hover {
    background: var(--color-muted);
}

.participants-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}