:root {
    --color-bg: #74c0fc;
    --color-fonts: white;
}
.welcome {
    background-color: var(--color-bg);
}

/* Estilos para el dashboard de residente */
.dash-residente .card {
    margin-top: 1rem;
    border-radius: 20px;
    display: flex;
    background-color: var(--color-bg);
    flex-direction: row;
    padding: 2rem;
    color: var(--color-fonts);
    align-items: center;
    gap: 2rem;
}

/* Logo */
.dash-residente .logo-desarrollo {
    width: 20%;
    display: flex;
    align-items: center;
}

.dash-residente .logo-desarrollo img {
    max-width: 100%;
    height: auto;
}

/* Columnas */
.dash-residente .info-residente,
.dash-residente .info-pay {
    flex: 1;
}

/* 📱 MOBILE */

@media (max-width: 768px) {

    .dash-residente .card {
        flex-direction: column;
        text-align: left;
    }

    .dash-residente .logo-desarrollo {
        width: 50%;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .dash-residente .info-residente,
    .dash-residente .info-pay {
        width: 100%;
        padding: 1rem;
    }
}
/*Reportes Residente*/
/* Contenedor general */

.flotantes {
    position: fixed;
    top: 15%;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.reportResident {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}

/* Bloque por desarrollo */
.development-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
}

/* Título del desarrollo */
.development-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
}

/* Tabla */
.table-wrapper {
    overflow-x: auto;
}

.resident-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* Encabezado */
.resident-table thead {
    background: #f8fafc;
}

.resident-table th {
    text-align: left;
    padding: 14px;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

/* Celdas */
.resident-table td {
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

/* Hover elegante */
.resident-table tbody tr:hover {
    background-color: #f9fafb;
    transition: 0.2s ease;
}

/* Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-transform: capitalize;

    background: #dcfce7;
    color: #166534;
}

/* Colores */
.status-deudor {
    background: #fee2e2;
    color: #b91c1c;
}


/* Responsive móvil */
/* ========================= */
/* RESPONSIVE MOBILE */
/* ========================= */

@media (max-width: 768px) {

    .development-block {
        padding: 18px;
    }

    .resident-table thead {
        display: none;
    }

    .resident-table,
    .resident-table tbody,
    .resident-table tr,
    .resident-table td {
        display: block;
        width: 100%;
    }

    .resident-table tr {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .resident-table td {
        border: none;
        padding: 8px 0;
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .resident-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        font-size: 13px;
    }

    .resident-table tbody tr:hover {
        background: #ffffff;
    }

}

/*Estilos Administrador*/
/* Estilos para el dashboard de Desarrollos */
.development-card {
    margin-top: 1rem;
    border-radius: 20px;
    display: flex;
    background-color: var(--color-bg);
    flex-direction: row;
    padding: 2rem;
    color: var(--color-fonts);
    align-items: center;
    width: 100%;
    max-width: 1000px; /* mejor control */
    gap: 2rem;
    flex-wrap: wrap; /* evita que se corte */
    svg{
        width: 34px;
        height: 34px;
        display: inline-block;
        
        
    }
}

.development-card .logo-desarrollo {
    width: 20%;
    display: flex;
    align-items: center;
}

.development-card .logo-desarrollo img{
    max-width: 100%;
    height: auto;
}

/*Mobile*/
@media (max-width: 768px) {

    .development-card {
        flex-direction: column;
        text-align: left;
        width: 100%;
    }

    .development-card .logo-desarrollo {
        width: 120px;
        justify-content: center;
        margin-bottom: 1rem;
    }

}

/* Estilos para documentos */
.documentos-card {
    margin-top: 1rem;
    border-radius: 20px;
    display: flex;
    background-color: var(--color-bg);
    /* Cambiado a column para ordenar las 3 líneas hacia abajo */
    flex-direction: column; 
    padding: 2rem;
    color: var(--color-fonts);
    width: 100%;
    max-width: 1000px;
    /* Espaciado vertical uniforme entre las 3 líneas */
    gap: 1rem; 

    /* Estilos para el texto de los elementos si es necesario */
    h3, p {
        margin: 0;
    }

    /* La fila de en medio que contiene Fecha y SVG */
    .card-row-middle {
        display: flex;
        flex-direction: row;
        align-items: center;
        /* Espaciado horizontal entre la fecha y el icono */
        gap: 1.5rem; 
    }

    svg {
        width: 34px;
        height: 34px;
        display: inline-block;
        vertical-align: middle;
    }
}

/* Estilos para el formulario de residente */
.form-container {
    width: 95%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-title {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

/* Separación entre secciones */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

/* Alineación label - input */
.form-group {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

/* Inputs ocupan todo */
.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
/* Grupo horizontal */
.form-group-inline {
    display: flex;
    gap: 4rem;
    margin-bottom: 1.5rem;
}

/* Cada campo ocupa el mismo espacio */
.inline-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Inputs */
.inline-field input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}


/* Botón */
.form-actions {
    text-align: right;
}

/* Responsive móvil */
@media (max-width: 768px) {
    .form-group {
        grid-template-columns: 1fr;
    }

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

/* Estilos para el panel de administración*/
.admin-container {
    display: flex;
    min-height: 100vh;

    svg{
        width: 24px;
        height: 24px;
        display: inline-block;
    }
    li:hover{
        font-size: large;
        svg{
            width: 28px;
        }
    }
    
}
.sidebar {
    padding: 1rem;
    height: 100vh;
    background-color: #e5e5e5;
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-bg);
}

