body {
    background: #f7f8fa;
    font-family: Arial, sans-serif;
}

.navbar {
    height: 70px;
}

.user-info {
    font-weight: 500;
}

.avatar {
    width: 35px;
    height: 35px;
    background: #f4d9a8;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    min-height: 170px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.card-number {
    font-size: 42px;
    font-weight: bold;
    margin-top: 15px;
}

.card-text {
    font-size: 32px;
    font-weight: bold;
    margin-top: 15px;
}

.dashboard-card i {
    font-size: 36px;
    position: absolute;
    right: 20px;
    top: 25px;
}

.icon-blue { color: #3b82f6; }
.icon-orange { color: #f59e0b; }
.icon-green { color: #22c55e; }
.icon-purple { color: #a855f7; }

.event-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.event-title {
    font-size: 24px;
    font-weight: bold;
}

.badge-status {
    background: #f1f5f9;
    padding: 8px 14px;
    border-radius: 20px;
    float: right;
}



.btn-orange {
    background: #c96a0a;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    white-space: nowrap;
}

.btn-orange:hover {
    background: #b65f08;
    color: white;
}

.search-box {
    height: 48px;
    border-radius: 12px;
}

.member-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.member-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.member-avatar {
    width: 55px;
    height: 55px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #64748b;
    font-size: 22px;
}

.member-name {
    font-size: 28px;
    font-weight: 600;
}

.member-sub {
    color: #64748b;
    margin-top: 4px;
}

.member-actions i {
    font-size: 20px;
    margin-left: 18px;
    cursor: pointer;
}

.badge-tag {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.tag-green { background: #dcfce7; color: #15803d; }
.tag-yellow { background: #fef3c7; color: #b45309; }
.tag-blue { background: #dbeafe; color: #1d4ed8; }
.tag-gray { background: #f3f4f6; color: #111827; }

@media (max-width: 768px) {
    .member-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .member-actions {
        margin-top: 15px;
    }

    .member-name {
        font-size: 20px;
    }
}

/* OVERLAY */
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* quando abrir */
.custom-modal-overlay.show {
    display: flex;
}

/* caixa branca */
.custom-modal {
    background: #fff;
    width: 900px;
    max-width: 95%;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* header */
.modal-header-custom {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-custom h3 {
    margin: 0;
}

/* body */
.modal-body-custom {
    padding: 25px;
    overflow-y: auto;
}

/* footer */
.modal-footer-custom {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* botão fechar */
.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}


.attendance-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.status-buttons {
    display: flex;
    gap: 8px;
}

.status-btn {
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
}

.present {
    background: #dcfce7;
    color: #15803d;
}

.absent {
    background: #fee2e2;
    color: #b91c1c;
}

.justified {
    background: #fef3c7;
    color: #b45309;
}

.selected {
    font-weight: bold;
    box-shadow: 0 0 0 2px #333 inset;
}


.contribution-card {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.contribution-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.contribution-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contrib-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch {
    width: 38px;
    height: 22px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    background: #ddd;
}

.switch.active {
    background: #8b5a20;
}

.switch::after {
    content: "";
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: .2s;
}

.switch.active::after {
    left: 19px;
}

.tag-red {
    background: #fee2e2;
    color: #b91c1c;
}

.login-body {
    margin: 0;
    background: #f7f8fa;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

.login-left {
    width: 50%;
    background: linear-gradient(135deg, #8b5a20, #b97730);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
}

.login-left h1 {
    font-size: 48px;
    font-weight: bold;
}

.login-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    width: 420px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.login-card input {
    height: 48px;
    border-radius: 10px;
}

.login-error {
    color: red;
    font-size: 14px;
}

@media (max-width: 992px) {
    .login-left {
        display: none;
    }

    .login-right {
        width: 100%;
    }
}

.user-menu-container {
    position: relative;
}

.user-info {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.user-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,.12);
    display: none;
    z-index: 9999;
    padding: 18px;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-header {
    margin-bottom: 16px;
    font-size: 18px;
}

.dropdown-metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 12px;
}

.dropdown-metric strong {
    color: #8b5a20;
}

.dropdown-item-custom {
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
}

.dropdown-item-custom:hover {
    background: #f5f5f5;
}

.logout {
    color: #dc2626;
}

.profile-card {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #f4d9a8;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
}