﻿:root {
    --accent-hover: #ff69b4;
    --accent: #ff1493;
    --text-color: #ffffff;
    --background-dark: #212121;
    --estado-sin-cambios: #2ecc71;
    --estado-modificado: #ff4d4d;
    --header-bg: #D8ACC7;
    --row-hover: #333333;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #212121;
    color: var(--text-color);
}

header {
    background-color: #D8ACC7 !important;
    height: 110px !important;
}

.main-header {
    background-color: #D8ACC7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-sizing: border-box;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    flex-direction: column;
    justify-content: center;
}

.logo {
    width: 100px;   
    height: 100px;
    object-fit: contain;
}

.header-center h1 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    color: #000;
}

.header-right .icon , .header-right .icon-btn {
    color: #000;
    width: 32px;
    height: 32px;
    margin-left: 16px;
    cursor: pointer;
}

.icon-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon, .icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    padding: 0;
}

.icon i, .icon-btn i {
    transition: transform 0.2s, color 0.2s;
}

.icon:hover i, .icon-btn:hover i {
    transform: scale(1.2);
    color: #333;
}



.table-header {
    margin-bottom: 10px;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 1.2em;
    text-align: center; 
}

.search-input {
    width: 90%;
    margin-left: 10px;
}

table.records-table {
    width: max-content;
    border-collapse: collapse;
    background-color: transparent;
    color: var(--text-color);
    border: none;
    table-layout: fixed; 
}

.records-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px auto;        
    width: fit-content;       
    max-width: 100vw;         
}

.records-container {
    height: 324px; 
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: white #333;
    width: 100%; 
    padding-right: 0; 
    box-sizing: border-box; 
}

.records-container::-webkit-scrollbar {
    width: 8px;
}

.records-container::-webkit-scrollbar-track {
    background: #fcfcff;
}

.records-container::-webkit-scrollbar-thumb {
    background-color: white;
    border-radius: 10px;
}

table.records-table th {
    background-color: transparent;
    color: var(--accent);
    text-align: left;
    padding: 15px 20px;
    font-weight: normal;
    border: none;
    text-align: center;
    vertical-align: middle;
}

table.records-table td {
    padding: 15px 20px;
    border: none;
    border-bottom: 1px solid #444;
    text-align: center;
    vertical-align: middle;
}


table.records-table td.patient-id {
    color: var(--accent);
    font-weight: bold;
}


table.records-table td.status-unchanged {
    color: var(--estado-sin-cambios);
}

table.records-table td.status-modified {
    color: var(--estado-modificado);
}
table.records-table tr {
    transition: box-shadow 0.25s ease-in-out;
}

table.records-table tr:hover {
    box-shadow: inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent);
    
}

.records-container::-webkit-scrollbar {
    width: 8px;
}

.records-container::-webkit-scrollbar-track {
    background: #333; 
}

.records-container::-webkit-scrollbar-thumb {
    background-color: white;
    border-radius: 10px;
}

.records-outer-wrapper {
    width: 100%;
    overflow-x: hidden;
}


table.records-table .status-unchanged {
    color: var(--estado-sin-cambios); 
}

table.records-table .status-modified {
    color: var(--estado-modificado); 
}

table.records-table .estado-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid currentColor;
    display: inline-block;
    width: fit-content;
}






.action-button {
    background-color: transparent;
    border: none;
    color: #777;
    cursor: pointer;
    padding: 5px;
}

.action-button:hover {
    color: var(--text-color);
}


.action-link {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 5px;
    padding: 5px;
    cursor: pointer;
}

.action-link:hover,
.action-link:visited,
.action-link:active,
.action-link:focus {
    color: var(--text-color);
    text-decoration: underline;
}

.contlabeler {
    height: auto; 
    overflow-y: visible;
    
    scrollbar-width: none;
    scrollbar-color: none;
}



.add-button {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.add-button:hover {
    background-color: var(--accent-hover, #4db8ff); 
    transform: translateY(-1px);
}

.add-button:active {
    transform: scale(0.98);
}




.annotation-box {
  position: absolute;
  cursor: move;
  box-sizing: border-box;
  border-radius: 4px;
  overflow: visible;
}

.resizer {
  width: 10px;
  height: 10px;
  background-color: white;
  border: 2px solid #333;
  border-radius: 50%;
  position: absolute;
  z-index: 20;
  display: none; 
}

.annotation-box.active .resizer {
  display: block; 
}

.resizer.tl { top: -6px; left: -6px; cursor: nwse-resize; }
.resizer.tr { top: -6px; right: -6px; cursor: nesw-resize; }
.resizer.bl { bottom: -6px; left: -6px; cursor: nesw-resize; }
.resizer.br { bottom: -6px; right: -6px; cursor: nwse-resize; }


@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 153, 255, 0.9);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 153, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 153, 255, 0);
  }
}

.annotation-box.active {
  animation: pulse-border 1.2s infinite;
  z-index: 10;
  border-width: 2px;
}


#etiqueta-menu {
  position: absolute;
  background: #1e1e1e;
  color: white;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  font-size: 14px;
  min-width: 160px;
}

#etiqueta-menu div {
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

#etiqueta-menu div:hover {
  background: rgba(255, 255, 255, 0.1);
}

#etiqueta-menu hr {
  margin: 8px 0;
  border: none;
  border-top: 1px solid #555;
}

.image-link {
    text-decoration: none;
    color: white;
}

.image-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.image-label:hover {
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.image-label .material-symbols-outlined {
    font-size: 20px;
}

.action-link {
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.action-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    color: var(--accent);
}

.action-link .material-symbols-outlined {
    font-size: 20px;
}



.image-container {
    position: relative;
    display: inline-block;
}

.image-container img {
    display: block; /* Quita el espacio extra debajo de la imagen */
    width: 100%;    /* Se adapta al 70% del contenedor padre */
    height: auto;
}

button.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.close-button:hover {
    background-color: #ccc;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    padding: 40px 0;
}

.modal-content {
    background-color: rgba(30, 30, 30, 0.85); 
    backdrop-filter: blur(50px);             
    margin: 40px auto;
    padding: 24px 32px;
    border-radius: 16px;
    border: 1px solid #444;
    width: 85%;
    max-width: 1000px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    color: #f2f2f2;
    font-family: 'Segoe UI', sans-serif;
    animation: fade-in 0.3s ease;
    transition: all 0.3s ease-in-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



.close {
    color: #ff69b4;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: white;
}


.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.list {
    display: inline-block;
}








.filter-wrapper input[type="text"], 
.filter-wrapper input[type="number"], 
.filter-wrapper select {
    
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    
    background-color: #333; 
    color: #f1f1f1; 
    border: 1px solid #ff1493; 
    border-radius: 5px; 
    padding: 10px 12px; 
    font-size: 1em;
    line-height: 1.2;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%; 
}


.filter-wrapper input[type="text"]:focus, 
.filter-wrapper input[type="number"]:focus, 
.filter-wrapper select:focus {
    border-color: #fff; 
    box-shadow: 0 0 5px rgba(255, 20, 147, 0.7); 
    outline: none; 
}





.filter-wrapper select {
    
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22%23f1f1f1%22%20d%3D%22M10.293%203.293L6%207.586%201.707%203.293A1%201%200%2000.293%204.707l5%205A1%201%200%20006%2010a1%201%200%2000.707-.293l5-5a1%201%200%2000-1.414-1.414z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px; 
}


.filter-wrapper select option {
    background-color: #333; 
    color: #f1f1f1; 
}





.search-input-wrapper .input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ff1493; 
    border-radius: 5px;
    background-color: #333; 
    padding: 0; 
    transition: border-color 0.3s, box-shadow 0.3s;
}


.search-input-wrapper .input-group:focus-within {
    border-color: #fff;
    box-shadow: 0 0 5px rgba(255, 20, 147, 0.7);
}


.search-input-wrapper .input-group i {
    color: #ff1493; 
    padding: 0 10px;
    font-size: 1.2em;
}


.search-input-wrapper input.search-input {
    flex-grow: 1; 
    border: none; 
    background-color: transparent; 
    padding: 10px 0; 
}


input .search-list {
    flex-grow: 1; 
    border: 2px solid rgb(255, 255, 255); 
    background-color: transparent; 
    padding: 0; 
}


.search-input-wrapper input.search-input:focus {
    border-color: transparent;
    box-shadow: none;
    outline: none;
}


.special-filter-container .input-group select {
    max-width: 70px; 
    text-align: center;
}


.filter-wrapper label {
    color: #f1f1f1; 
}


.special-filter-container {
    background-color: #2c2c2c; 
    border-color: #ff1493;
}

.special-filter-toggle {
    color: #ff1493; 
}





.download-all-button {
    
    background-color: var(--accent); 
    color: var(--text-color); 
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s;
    
    
    display: inline-flex;
    align-items: center;
    gap: 8px;
    
    
    margin: 10px 0; 
    align-self: flex-start; 
}

.download-all-button .material-symbols-outlined {
    font-size: 20px;
    line-height: 1; 
}

.download-all-button:hover {
    background-color: var(--background-dark); 
    border-color: var(--accent-hover); 
    color: var(--accent-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(255, 20, 147, 0.4);
}

.download-all-button:active {
    transform: translateY(0);
    box-shadow: none;
}