/* Google Fonts Import Link */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f0f0f0; /* Color de fondo opcional */
    box-sizing: border-box; /* Incluye padding y border en tamaño total */
    overflow-y: scroll;
}

h1 {
    text-align: left;
    top: -50px;
    font-size: 18px;
    color: #265da3;
    margin-left: 15px;
    position: relative;
}

.container {
    flex-direction: column;
    justify-content: center;
    top: 30px;
    position: relative;
    margin-left: 15px;
    max-width: 92%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: calc(100% - 290px);
    transition: all 0.5s ease;
    left: 250px;
    box-sizing: border-box;
    border-radius: 10px;
}

.sidebar.close ~  .container {
    left: 70px;
    width: calc(100% - 60px);
}

/* Estilos perfil */
.profile-details-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 22px 18px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 340px;
    margin: auto;
}

.profile-details-simple .profile-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.user-info {
    text-align: center;
    margin-bottom: 20px;
}

.user-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #0f172a;
}

.user-email,
.user-area {
    font-size: 0.85rem;
    color: #475569;
    display: block;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.profile-actions .form-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.profile-actions .form-inline input[type="file"] {
    cursor: pointer;
}

.profile-actions button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.profile-actions button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}
.profile-actions button i {
    font-size: 0.95em;
    line-height: 1;
}
.profile-details-simple input[type="file"],
.profile-details-simple input[type="password"] {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    background: #fff;
}

.profile-details-simple input[type="password"]:focus,
.profile-details-simple input[type="file"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
/* Responsive */
@media (max-width: 500px) {
    .container {
        width: 95%;
        left: 0;
        margin-left: 0;
        padding: 15px;
    }
    .profile-details-simple {
        padding: 20px 15px;
        max-width: 90%;
    }
}
/* --- Dispositivos grandes (Desktop full HD y más) --- */
@media (min-width: 1400px) {
    .container {
        max-width: 80%;
        padding: 30px;
    }
    .profile-details-simple {
        max-width: 400px;
    }
}

/* --- Laptops / Escritorios medianos (1024px - 1399px) --- */
@media (max-width: 1399px) {
    .container {
        width: calc(100% - 240px);
        left: 220px;
    }
    .sidebar.close ~ .container {
        width: calc(100% - 80px);
        left: 70px;
    }
}

/* --- Tablets horizontales (768px - 1023px) --- */
@media (max-width: 1023px) {
    .container {
        width: 90%;
        left: 0;
        margin: auto;
    }
    .profile-details-simple {
        max-width: 70%;
    }
}

/* --- Tablets verticales / móviles grandes (501px - 767px) --- */
@media (max-width: 767px) {
    .container {
        width: 95%;
        left: 0;
        margin-left: auto;
        margin-right: auto;
    }
    h1 {
        font-size: 16px;
    }
    .profile-details-simple {
        max-width: 95%;
    }
    .profile-actions {
        gap: 10px;
    }
    .profile-actions button {
        font-size: 0.85rem;
        padding: 8px;
    }
}

/* --- Móviles pequeños (hasta 500px) --- */
@media (max-width: 500px) {
    .container {
        width: 95%;
        left: 0;
        margin-left: 0;
        padding: 15px;
    }
    h1 {
        font-size: 14px;
    }
    .profile-details-simple {
        padding: 20px 15px;
        max-width: 90%;
    }
    .user-name {
        font-size: 1rem;
    }
    .user-email, .user-area {
        font-size: 0.8rem;
    }
}

/* ===== ESTILOS DE PAGINACIÓN ===== */

.pagination {
    margin: 24px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.pagination button a {
    text-decoration: none;
    color: inherit;
}

.pagination button {
    padding: 6px 14px;
    border: 1px solid #3b82f6;
    border-radius: 5px;
    background: white;
    color: #3b82f6;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.pagination button:not(:disabled):hover {
    background: #3b82f6;
    color: white;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #9ca3af;
}

/* Números de paginación */
.page-numbers {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 0 10px;
}

.page-number {
    padding: 6px 12px;
    border: 1px solid #3b82f6;
    border-radius: 5px;
    background: white;
    color: #3b82f6;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    min-width: 35px;
    text-align: center;
    transition: all 0.2s ease;
}

.page-number:hover {
    background: #3b82f6;
    color: white;
}

.page-number.active {
    background: #3b82f6;
    color: white;
}
