/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    margin-top: 20px;
}

.menu {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.menu a {
    margin: 0 10px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

/* Estilos para centrar la tabla */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 100px); /* Ajusta este valor si necesitas */
}

.center-table {
    margin: auto;
    border-collapse: collapse;
}

.center-table td {
    padding: 20px;
    vertical-align: top;
}

/* Estilos para la imagen de vista previa */
#imagePreview {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    display: block;
    margin: auto;
}

/* Estilos de botones */
input[type="submit"], .logout-button {
    display: block;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: none;
    cursor: pointer;
}

input[type="submit"] {
    background-color: green;
    color: white;
}

.logout-button {
    background-color: black;
    color: white;
    text-decoration: none;
}

/* Otros estilos */
.category-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-options label {
    display: flex;
    align-items: center;
}

.error-message {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

/* Estilos para listar_sref.php */
.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sref-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.sref-code a {
    background-color: #007bff; /* Fondo azul */
    color: white;
    padding: 5px 10px;
    text-align: center;
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    text-decoration: none;
}

.sref-label {
    text-align: center;
    width: 120px; /* Ancho fijo para la primera celda */
    background-color: white; /* Fondo blanco para la celda */
    padding: 10px;
}

.add-text {
    text-align: center;
    margin: 10px 0; /* Margen superior e inferior */
    color: #007bff; /* Cambia el color a azul */
}

.tags-links a {
    color: #007bff;
    text-decoration: none;
}

.tags-links a:hover {
    text-decoration: underline;
}

.tags-links a:visited {
    color: #007bff; /* Mantiene el color azul */
}

.collaborators-cell {
    text-align: center;
    vertical-align: top;
}

.collaborators-cell a {
    margin: 0 10px;
}

.sref-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sref-images img {
    cursor: pointer;
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.pagination {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    list-style: none;
}

.pagination a, .pagination span {
    margin: 0 5px;
    padding: 5px 10px;
    text-decoration: none;
    color: #007bff;
}

.pagination .active span {
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border-radius: 3px;
    text-decoration: none;
}

.pagination .disabled span {
    color: #6c757d;
}

.limit-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.limit-selector label {
    margin-right: 5px;
}

.limit-selector a {
    margin: 0 5px;
    padding: 5px 10px;
    text-decoration: none;
    color: #007bff;
}

.limit-selector a.active {
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border-radius: 3px;
    text-decoration: none;
}

/* Estilos para el popup */
#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

#popupImage {
    max-width: 100%;
    max-height: 400px;
}

#popupSref {
    margin-top: 10px;
    cursor: pointer;
    color: #007bff;
}

#popupSref:hover {
    text-decoration: underline;
}

/* Nuevos estilos para ver_imagenes.php */
.hidden-form {
    display: none;
}

.tag-section {
    margin-top: 20px;
    text-align: center;
}

.tag-section table {
    margin: 0 auto;
}

.tags-group, .collaborators-group {
    text-align: left;
    padding: 10px;
    vertical-align: top; /* Alineación al top */
}

.tags-group a, .collaborators-group a {
    color: #007bff;
    text-decoration: none;
}

.tags-group a:hover, .collaborators-group a:hover {
    text-decoration: underline;
}

.tags-group a:visited, .collaborators-group a:visited {
    color: #007bff;
}

.button-link {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}
