* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body {
    background: #1a1e23;
    color: #e0e0e0;
    padding: 20px;
}

/* Estilos de Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100%;
    background: #21252b;
    padding: 20px;
    border-right: 1px solid #4a5059;
}

.sidebar h3 {
    color: #00c4b4;
    margin-bottom: 0px;
    font-weight: 400;
    font-size: 23px;
}

.sidebar .tagline {
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 10px;
    letter-spacing: .25em;
}

.user-profile {
    margin-bottom: 20px;
}

.user-profile a {
    display: flex;
    align-items: center;
    color: #e0e0e0;
    text-decoration: none;
}

.user-profile a:hover {
    color: #00c4b4;
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    color: #e0e0e0;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.sidebar ul li a:hover {
    color: #00c4b4;
}

.sidebar ul li a img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 4px;
}

.sidebar #adminSection ul {
    font-size: .9em;
}

.sidebar h3.admin-menu-title,
ul.logout {
    text-transform: uppercase;
    font-size: .9em;
    margin-top: 60px;
}
ul.logout {
    position: absolute;
    bottom: 20px;
    margin-top: 0;
}

.logout-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    background-color: transparent;
    color: #ffffff8c;
    border-radius: 50%;
    font-size: 12px;
    margin-right: 5px;
    vertical-align: middle;
    font-family: sans-serif;
    font-weight: 600;
    border: 1px solid #ffffff8c;
}

.sidebar ul li a:hover .logout-icon {
    color: #fff;
    background-color: #E00;
    border: 0;
}

.sidebar .logo {
    width: 160px;
}

.copyright {
    color: #ffffff48;
    font-size: 12px;
    position: absolute;
    bottom: 10px;
}

/* Estilos del Contenido Principal */
.main-content {
    margin-left: 220px;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: auto;
}

.search-bar {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar input {
    background: #3a4049;
    border: 1px solid #4a5059;
    border-radius: 5px;
    padding: 10px;
    color: #e0e0e0;
    width: 300px;
}

.search-bar button {
    background: #00c4b4;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    color: #1a1e23;
    cursor: pointer;
}

.search-bar button:hover {
    background: #00a89a;
}

h1 {
    color: #00c4b4;
    margin-bottom: 20px;
}

/* Estilos de los Prompts */
#promptList {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.prompt {
    background: #2a2f36;
    border: 1px solid #4a5059;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
}

.prompt:hover {
    border-color: #00c4b4;
}

.prompt-actions {
    display: flex;
    gap: 10px;
}

.prompt-actions button {
    padding: 5px 10px;
    font-size: 0.9em;
    background: #00c4b4;
    border: none;
    border-radius: 5px;
    color: #1a1e23;
    cursor: pointer;
}

.prompt-actions button:hover {
    background: #00a89a;
}

.description-excerpt {
    font-size: 0.9em;
    color: #b0b0b0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 4px;
}

/* Estilos del Botón Flotante */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #00c4b4;
    color: #1a1e23;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 46px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.floating-btn:hover {
    background: #00a89a;
    text-decoration: none;
}

/* Estilos del Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #2a2f36;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 750px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-content h3 {
    color: #00c4b4;
    margin-bottom: 0;
    font-size: 1.9em;
}

.modal-content p {
    margin: 2px 0;
}

.modal-content pre#modalContent {
    background: #3a4049;
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
    font-size: 1.1em;
    font-family: monospace;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

#promptActions {
    display: flex;
    gap: 10px;
}

#modalCategoryLine img.category-icon {
    width: 16px;
    height: 16px;
}

.modal-content button {
    background: #00c4b4;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    color: #1a1e23;
    cursor: pointer;
}

.modal-content button:hover {
    background: #00a89a;
}

#promptActions button[onclick*="deletePrompt"] {
    background: #ff5555;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #e0e0e0;
    font-size: 24px;
    cursor: pointer;
}

p#modalMeta {
    color: #ffffff55;
}

/* Estilos para los hashtags */
.hashtags {
    color: #00c4b4;
    font-size: 0.9em;
    margin: 5px 0;
}

/* Estilos específicos para create_prompt.html */
form {
    background: #2a2f36;
    border-radius: 8px;
}

select,
input,
textarea {
    background: #3a4049;
    border: 1px solid #4a5059;
    border-radius: 5px;
    padding: 10px;
    color: #e0e0e0;
    margin: 10px 0;
    width: 100%;
}

textarea {
    height: 200px;
    resize: vertical;
}

#promptDescription {
    height: 80px;
}

button {
    background: #00c4b4;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    color: #1a1e23;
    cursor: pointer;
}

button:hover {
    background: #00a89a;
}

a {
    color: #00c4b4;
    text-decoration: none;
    display: block;
    margin-top: 8px;
}

a:hover {
    text-decoration: underline;
}

#promptForm {
    padding: 20px;
}

#promptContent {
    font-family: monospace;
    font-size: 14px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.form-actions button {
    background: #00c4b4;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    color: #1a1e23;
    cursor: pointer;
}

.form-actions button:hover {
    background: #00a89a;
}

.form-actions button:first-child {
    background: #4a5059;
}

.form-actions button:first-child:hover {
    background: #5a6069;
}

/* Estilos para manage_categories.html */
.category {
    background: #2a2f36;
    border: 1px solid #4a5059;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    border-radius: 4px;
}

.category-actions button {
    padding: 5px 10px;
    margin-left: 10px;
}

.category-actions button.edit {
    background: #00c4b4;
}

.category-actions button.delete {
    background: #ff5555;
}

#categoryForm {
    padding: 20px;
}

/* Estilos del Modal de Edición (reutilizables para otros modales, pero ajustados aquí) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #2a2f36;
    padding: 20px;
    border-radius: 8px;
    width: 750px;
    position: relative;
}

.modal-content h3 {
    color: #00c4b4;
    margin-bottom: 20px;
}

.modal-content input,
.modal-content select {
    margin: 10px 0;
}

.modal-content img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 4px;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #e0e0e0;
    font-size: 24px;
    cursor: pointer;
}

/* Asegurar que categoryList y sus elementos estén bien alineados */
#categoryList {
    width: 100%;
    margin: 0 auto;
}

.category {
    background: #2a2f36;
    border: 1px solid #4a5059;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Asegurar que ocupe todo el ancho disponible */
    box-sizing: border-box;
}

/* may 8 */

/* Estilos para las categorías en el sidebar */
.category-item {
    margin: 10px 0;
}

.category-item a {
    display: flex;
    align-items: center;
    color: #e0e0e0;
    text-decoration: none;
    cursor: pointer;
}

.category-item a:hover {
    color: #00c4b4;
}

.category-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

.category-name {
    color: #e0e0e0;
}

.prompt-count {
    color: #00c4b4;
    font-size: 14px;
}

/* Estilo del botón flotante: eliminar font-family específica */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #00c4b4;
    color: #1a1e23;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    padding-bottom: 8px;
    /*align-items: center;*/
    font-size: 46px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Estilos específicos para manage_profile.html */
.profile-container {
    background: #2a2f36;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    text-align: center;
    margin: 0 auto;
    /* Centrar horizontalmente */
}

/* Centrar el contenido principal verticalmente y horizontalmente */
.main-content.profile-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Asegurar que ocupe toda la altura de la pantalla */
}

/* Asegurar que los estilos de error sean consistentes */
.profile-container .error {
    color: #ff5555;
    font-size: 14px;
    margin-top: 5px;
    text-align: left;
    display: none;
}

/* Estilo para el enlace "Volver al Inicio" */
.profile-container a {
    color: #00c4b4;
    text-decoration: none;
    display: block;
    margin-top: 15px;
}

.profile-container a:hover {
    text-decoration: underline;
}

/* Estilos específicos para el formulario en manage_profile.html */
.profile-container h2 {
    color: #00c4b4;
    margin-bottom: 20px;
}

.profile-container input {
    background: #3a4049;
    border: 1px solid #4a5059;
    border-radius: 5px;
    padding: 10px;
    color: #e0e0e0;
    margin: 10px 0;
    width: 100%;
}

.profile-container .form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.profile-container .form-actions button {
    background: #00c4b4;
    border: none;
    padding: 10px;
    border-radius: 5px;
    color: #1a1e23;
    cursor: pointer;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    /* Forzar la fuente global */
}

.profile-container .form-actions button:hover {
    background: #00a89a;
}

.profile-container .form-actions button:first-child {
    background: #4a5059;
}

.profile-container .form-actions button:first-child:hover {
    background: #5a6069;
}

/* -----------------------------*/
/* Estilos específicos para manage_settings.html */
.settings-container {
    background: #2a2f36;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    text-align: center;
    margin: 0 auto;
    /* Centrar horizontalmente */
}

/* Centrar el contenido principal verticalmente y horizontalmente */
.main-content.settings-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Asegurar que ocupe toda la altura de la pantalla */
}

/* Estilo para cada configuración (checkbox y label) */
.settings-container .setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.settings-container label {
    color: #e0e0e0;
}

.settings-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* Estilo para el enlace "Volver al Inicio" */
.settings-container a {
    color: #00c4b4;
    text-decoration: none;
    display: block;
    margin-top: 15px;
}

.settings-container a:hover {
    text-decoration: underline;
}

/* Estilos específicos para el formulario en manage_settings.html */
.settings-container h2 {
    color: #00c4b4;
    margin-bottom: 20px;
}

.settings-container .form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.settings-container .form-actions button {
    width: 100%;
}

/* ---------------------*/
/* Estilos específicos para manage_users.html */
.actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.actions button {
    background: #00c4b4;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    color: #1a1e23;
    cursor: pointer;
}

.actions button:hover {
    background: #00a89a;
}

.actions button:first-child {
    background: #4a5059;
}

.actions button:first-child:hover {
    background: #5a6069;
}

#userList {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.user {
    background: #2a2f36;
    border: 1px solid #4a5059;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    flex-grow: 1;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: #00c4b4;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    color: #1a1e23;
    cursor: pointer;
}

.action-btn:hover {
    background: #00a89a;
}

.action-btn.delete {
    background: #ff5555;
}

.action-btn.delete:hover {
    background: #e04b4b;
}

/* Ajustes para los modales */
.modal-content label {
    display: block;
}

.modal-content input,
.modal-content select {
    background: #3a4049;
    border: 1px solid #4a5059;
    border-radius: 5px;
    padding: 10px;
    color: #e0e0e0;
    width: 100%;
    margin-bottom: 10px;
}

.modal-content button {
    margin-top: 10px;
}

#reassignUserContainer {
    margin-top: 10px;
}

.modal-content p {
    margin: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #4a5059;
        padding: 10px 20px;
    }

    .main-content {
        margin-left: 0;
        padding: 10px;
    }

    .floating-btn {
        bottom: 20px;
        right: 20px;
        font-size: 36px;
        width: 45px;
        height: 45px;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }

    #promptList {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .prompt {
        padding: 10px;
    }
    .modal-content button{
        padding: 8px 11px;
    }
    .form-actions button{
        padding: 10px 11px;
    }
    .category-actions button{
        margin-left: 0;
    }
    .copyright{
        position: relative;
        margin-top: 1.5em;
        text-align: center;
    }
    .sidebar h3.admin-menu-title, ul.logout{
        margin-top: 20px;
    }
    ul.logout{
        position: relative;
        bottom: 0;
        margin-top: 25px;
    }
}