#consorcio-app {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.consorcio-header-filters { background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 20px; }
.filter-group { display: flex; gap: 15px; align-items: center; }
.filter-group select { padding: 10px 15px; border: 1px solid #ddd; border-radius: 5px; min-width: 33.33%; }
.filter-group button { background: var(--p-color) !important; color: var(--t-color); border: none; padding: 10px 25px; border-radius: 5px; cursor: pointer; font-weight: bold; }

.consorcio-table-wrapper { width: 100%; overflow-x: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.05); border-radius: 8px; position: relative; min-height: 200px; }

/* Loader Styles */
.loader-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--p-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#main-table { width: 100%; border-collapse: collapse; background: white; table-layout: fixed; }
#main-table th { background: var(--p-color); color: var(--t-color); padding: 15px; text-align: left; font-size: 13px; text-transform: uppercase; }
#main-table td { padding: 15px; border-bottom: 1px solid #eee; font-size: 14px; color: #333; }

.status-disponivel { color: var(--r-color); font-weight: bold; }
.status-reservada { color: #dc3545; font-weight: bold; }

.btn-interesse {
    background: var(--p-color);
    color: var(--t-color);
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.btn-interesse:hover {
	color: #FFF;
	cursor: pointer;
}

.btn-interesse .mobile-icon { display: none; }
.btn-interesse .desktop-text { display: inline; }

.status-text { display: inline; font-weight: bold; }
.status-icon { display: none; }

.status-disponivel, .status-text.disponivel { color: var(--r-color); }
.status-reservada, .status-text.reservada { color: #ffc107; }

.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}
.status-icon.disponivel { background: var(--r-color); }
.status-icon.reservada { background: #ffc107; }

/* Checkbox Customizado */
.row-select {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    outline: none;
}
.row-select:checked {
    background: var(--p-color);
    border-color: var(--p-color);
}
.row-select:checked::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}

#float-bar { 
    position: fixed; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1000; 
    width: auto;
}
#open-modal-btn { 
    background: var(--p-color); 
    color: white; 
    border: none; 
    padding: 15px 40px; 
    border-radius: 50px; 
    cursor: pointer; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); 
    font-weight: bold; 
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .consorcio-table-wrapper { overflow-x: auto; }
    #main-table { table-layout: fixed; }
    
    /* Esconde colunas menos importantes no mobile para garantir 100% width sem scroll */
    #main-table th:nth-child(5), #main-table td:nth-child(5),
    #main-table th:nth-child(6), #main-table td:nth-child(6) {
        display: none;
    }
    
    #main-table th, #main-table td {
        padding: 8px 4px;
        font-size: 11px;
        width: 100px;
        text-align: center;
    }

    .btn-interesse {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--p-color);
        color: white;
    }
    .btn-interesse .desktop-text { display: none; }
    .btn-interesse .mobile-icon { display: inline; font-size: 18px; }
    
    .status-text { display: none; }
    .status-icon { display: flex; width: 20px; height: 20px; font-size: 10px; }
    
    #open-modal-btn { padding: 12px 30px; font-size: 16px; background: var(--p-color); }
}

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 2000; }
.modal-content { background: white; width: 90%; max-width: 650px; border-radius: 10px; overflow: hidden; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header { background: var(--mh-color); color: white; padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { margin: 0; font-size: 20px; }
.close-modal { cursor: pointer; font-size: 24px; }

.modal-body { padding: 25px; color: var(--mt-color); }
.modal-subtitle { color: var(--mh-color); font-weight: bold; margin-bottom: 20px; }

.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.grid-item label { display: block; font-size: 12px; font-weight: bold; margin-bottom: 5px; }
.val-box { background: #f8f9fa; padding: 10px 15px; border-radius: 5px; font-size: 15px; }
.list-box { max-height: 150px; overflow-y: auto; font-size: 13px; line-height: 1.6; }

#m-whatsapp-btn { width: 100%; background: var(--r-color); color: white; border: none; padding: 15px; border-radius: 5px; font-weight: bold; cursor: pointer; margin-top: 10px; }

.percentage-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

button.pct-btn {
    max-width: fit-content;
    width: 100%;
    padding: 5px;
    color: #fff;
    background: #222;
    border-color: #222;
}

button.pct-btn.active {
    color: #fff;
    background: #03d01f;
    border-color: #03d01f;
}

.modal-body {
    max-height: 550px;
    overflow: auto;
}

div#auth-login-form, div#auth-register-form, div#auth-lost-password-form {
    padding: 15px;
    background: #222;
    border-radius: 12px;
    max-width: fit-content;
    width: 100%;
}

div#auth-login-form h3, div#auth-register-form h3, div#auth-lost-password-form h3 {
    color: #FFF;
}

button#btn-do-login, button#btn-do-register, button#btn-do-lost-password {
    margin-top: 10px;
    border-color: #03D01F;
    color: #03D01F;
}

button#btn-do-login:hover, button#btn-do-register:hover, button#btn-do-lost-password:hover {
    margin-top: 10px;
    background-color: #03D01F;
    border-color: #03D01F;
    color: #fff;
}

p.auth-footer {
    margin-top: 20px;
}

p.auth-footer a {
    color: #03D01F;
}