* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }

html, body { height: 100%; overflow: hidden; color: #fff; }

/* ========== FONDO ANIMADO (sutil, sin colores agresivos) ========== */
/* FONDO MÁS CLARO Y DEFINIDO */
.bg-blobs {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #2a3441 0%, #1e242d 55%, #12161c 100%);
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: .35;
  animation: float 26s ease-in-out infinite;
}
.b1 { width: 700px; height: 700px; background: #4f8cff; top: -150px; left: -150px; }
.b2 { width: 800px; height: 800px; background: #7b5cff; bottom: -200px; right: -150px; animation-delay: -8s; }
.b3 { width: 600px; height: 600px; background: #33d1c4; top: 40%; left: 40%; animation-delay: -16s; opacity: 0.2; }

@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(60px,-40px) scale(1.1); }
  66%     { transform: translate(-40px,50px) scale(.95); }
}
.b1 { width: 700px; height: 700px; background: #2a3f66; top: -180px; left: -160px; }
.b2 { width: 800px; height: 800px; background: #3a2f5c; bottom: -260px; right: -200px; animation-delay: -8s; }
.b3 { width: 600px; height: 600px; background: #234a4a; top: 35%; left: 45%; animation-delay: -16s; }

@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(50px,-30px) scale(1.06); }
  66%     { transform: translate(-30px,40px) scale(.96); }
}

/* ========== LOGIN ========== */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }

.login-glass {
  width: 360px; padding: 40px 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.2);
  text-align: center;
  animation: fadeIn .6s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } }

.login-glass .logo {
  font-size: 42px; margin-bottom: 6px;
  filter: drop-shadow(0 0 20px rgba(120,150,255,.35));
}
.login-glass h1 { font-size: 26px; font-weight: 700; letter-spacing: 1px; margin-bottom: 4px; }
.login-glass h1 span { color: #7ba2ff; }
.login-glass .subtitle {
  font-size: 12px; color: rgba(255,255,255,.55);
  margin-bottom: 28px; letter-spacing: 2px; text-transform: uppercase;
}

.field { position: relative; margin-bottom: 18px; }
.field input {
  width: 100%; padding: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px; color: #fff; font-size: 14px;
  outline: none; transition: all .25s;
}
.field input:focus {
  border-color: #7ba2ff;
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(123,162,255,0.18);
}
.field label {
  position: absolute; left: 14px; top: 14px;
  color: rgba(255,255,255,.5); font-size: 14px;
  pointer-events: none; transition: all .2s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: -8px; left: 10px; font-size: 11px;
  background: #121722; padding: 0 6px; border-radius: 4px;
  color: #7ba2ff;
}

.login-glass button {
  width: 100%; padding: 13px; margin-top: 8px;
  background: linear-gradient(135deg, #5c7dff, #8a6bff);
  border: none; border-radius: 12px; color: #fff;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform .15s, box-shadow .25s;
  box-shadow: 0 8px 24px rgba(92,125,255,.35);
}
.login-glass button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(92,125,255,.5); }
.login-glass button:disabled { opacity: .6; cursor: wait; transform: none; }

.msg { font-size: 13px; color: #ff7b7b; margin-top: 12px; min-height: 16px; }
.hint { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 14px; }

/* ========== ESCRITORIO ========== */
.desktop-body { position: relative; }

#taskbar {
  position: relative; z-index: 9999;
  height: 52px; margin: 10px; padding: 0 16px;
  display: flex; align-items: center; gap: 16px;

  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow:
    0 10px 30px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.14);
}

#taskbar .brand {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: none; color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: 1px;
  padding: 8px 12px; border-radius: 10px; cursor: pointer;
  transition: background .2s;
}
#taskbar .brand:hover { background: rgba(255,255,255,.08); }
#taskbar .brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7ba2ff;
  box-shadow: 0 0 10px rgba(123,162,255,.7);
}

.tb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
#clock {
  font-variant-numeric: tabular-nums; font-size: 13px;
  color: rgba(255,255,255,.82);
  padding: 6px 12px; border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  line-height: 1.25; text-align: right;
}
#clock .date { display: block; font-size: 11px; color: rgba(255,255,255,.55); }

.logout {
  color: #fff; text-decoration: none; font-size: 18px;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; transition: background .2s, color .2s;
}
.logout:hover { background: rgba(255,80,80,.22); color: #ff9b9b; }

#appmenu {
  position: absolute; top: 62px; left: 16px;
  min-width: 180px; padding: 8px;
  background: rgba(16,20,30,0.72);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  animation: pop .18s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-6px); } }
#appmenu div {
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  font-size: 14px; transition: background .15s;
}
#appmenu div:hover { background: rgba(123,162,255,.25); }
.hidden { display: none !important; }

#desktop { position: absolute; inset: 72px 0 0 0; }

/* ========== VENTANAS ========== */
.window {
  position: absolute; top: 40px; left: 80px; width: 460px;
  background: rgba(16,20,30,0.62);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; overflow: hidden;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    0 25px 60px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.12);
  animation: winIn .25s ease;
  display: flex; flex-direction: column;
}
@keyframes winIn { from { opacity: 0; transform: scale(.95); } }

.win-title {
  padding: 10px 14px; font-weight: 600; font-size: 13px;
  letter-spacing: .5px; cursor: move; user-select: none;
  background: rgba(255,255,255,0.045);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.win-close {
  position: absolute; top: 8px; right: 12px;
  color: rgba(255,255,255,.7); cursor: pointer; font-size: 13px;
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 8px; transition: all .15s;
}
.win-close:hover { background: rgba(255,80,80,.28); color: #fff; }
.win-body { padding: 12px; max-height: 440px; overflow: auto; }

/* ========== APP ARCHIVOS ========== */
.files-app { display: flex; flex-direction: column; gap: 10px; }

.file-toolbar {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.file-toolbar button,
.file-toolbar label {
  padding: 7px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: #fff;
  font-weight: 600; font-size: 12.5px; cursor: pointer;
  transition: background .15s, transform .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.file-toolbar button:hover,
.file-toolbar label:hover { background: rgba(123,162,255,.22); }
.file-toolbar button.primary {
  background: linear-gradient(135deg, #5c7dff, #8a6bff);
  border-color: transparent;
}
.file-toolbar button.primary:hover { transform: translateY(-1px); }
.file-toolbar input[type="file"] { display: none; }

#fileList { list-style: none; display: flex; flex-direction: column; gap: 4px; }
#fileList li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  font-size: 14px; cursor: pointer;
  transition: background .15s;
  border: 1px solid transparent;
}
#fileList li:hover { background: rgba(123,162,255,.16); border-color: rgba(123,162,255,.25); }
#fileList .fi-icon { font-size: 18px; }
#fileList .fi-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fileList .fi-size { font-size: 11px; color: rgba(255,255,255,.5); }
#fileList .fi-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
#fileList li:hover .fi-actions { opacity: 1; }
#fileList .fi-actions button {
  background: rgba(255,255,255,.08); border: none; color: #fff;
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer;
  font-size: 13px; display: grid; place-items: center;
  transition: background .15s;
}
#fileList .fi-actions button:hover { background: rgba(123,162,255,.35); }
#fileList .fi-actions button.del:hover { background: rgba(255,80,80,.35); }

/* Editor dentro de la ventana */
.file-editor {
  display: flex; flex-direction: column; gap: 8px;
}
.file-editor .editor-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,.65);
}
.file-editor textarea {
  width: 100%; height: 260px; padding: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; color: #fff; font-size: 13px;
  font-family: 'Consolas', monospace; resize: vertical; outline: none;
}
.file-editor textarea:focus { border-color: #7ba2ff; }
.file-editor .editor-actions { display: flex; gap: 8px; justify-content: flex-end; }
.file-editor .editor-actions button {
  padding: 7px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 13px;
}
.file-editor .editor-actions button.primary {
  background: linear-gradient(135deg, #5c7dff, #8a6bff); border-color: transparent;
}

.dropzone {
  border: 2px dashed rgba(255,255,255,.18);
  border-radius: 12px; padding: 18px; text-align: center;
  color: rgba(255,255,255,.55); font-size: 13px;
  transition: all .15s;
}
.dropzone.dragover {
  border-color: #7ba2ff;
  background: rgba(123,162,255,.12);
  color: #fff;
}

#noteArea {
  width: 100%; height: 220px; padding: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; color: #fff; font-size: 14px;
  resize: vertical; outline: none;
}
#noteArea:focus { border-color: #7ba2ff; }

/* Breadcrumb de navegación */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 6px 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  font-size: 13px;
  min-height: 34px;
}
.breadcrumb .crumb {
  padding: 4px 8px; border-radius: 6px; cursor: pointer;
  color: rgba(255,255,255,.85); transition: background .15s;
}
.breadcrumb .crumb:hover { background: rgba(123,162,255,.22); }
.breadcrumb .crumb.current {
  background: rgba(123,162,255,.22); cursor: default;
  color: #fff; font-weight: 600;
}
.breadcrumb .sep { color: rgba(255,255,255,.35); font-size: 11px; }

/* ========== MODALES GLASS ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}

.modal-box {
  background: rgba(20, 24, 35, 0.85);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px; padding: 24px;
  width: 100%; max-width: 400px;
  box-shadow: 0 25px 60px rgba(0,0,0,.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: pop .2s ease;
}

.modal-box h3 { font-size: 16px; margin-bottom: 16px; font-weight: 500; }
.modal-box input {
  width: 100%; padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; color: #fff; outline: none; margin-bottom: 16px;
}
.modal-box input:focus { border-color: #7ba2ff; box-shadow: 0 0 0 3px rgba(123,162,255,0.15); }

.modal-actions {
  display: flex; justify-content: flex-end; gap: 8px;
}
.modal-actions button {
  padding: 8px 16px; border-radius: 10px; font-weight: 600;
  cursor: pointer; font-size: 13px; border: 1px solid transparent;
  transition: all .15s;
}
.modal-actions button.cancel {
  background: transparent; border-color: rgba(255,255,255,0.15); color: #ccc;
}
.modal-actions button.cancel:hover { background: rgba(255,255,255,0.1); color: #fff; }
.modal-actions button.primary {
  background: linear-gradient(135deg, #5c7dff, #8a6bff); color: #fff;
}
.modal-actions button.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(92,125,255,0.4); }

/* ========== PREVISUALIZADOR ========== */
.file-preview {
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2); border-radius: 10px;
  min-height: 150px; width: 100%; padding: 10px;
}
.file-preview img, .file-preview video {
  max-width: 100%; max-height: 300px; border-radius: 8px; object-fit: contain;
}
.file-preview iframe {
  width: 100%; height: 300px; border: none; border-radius: 8px; background: #fff;
}

/* ========== NUEVOS ESTILOS ========== */

/* Botones de ventana (Minimizar, Cerrar) */
.win-controls {
  position: absolute; top: 8px; right: 12px;
  display: flex; gap: 4px; z-index: 10;
}
.win-btn {
  width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center; cursor: pointer;
  color: rgba(255,255,255,.7); font-size: 12px;
  transition: all .15s; border: none; background: transparent;
}
.win-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.win-btn.close:hover { background: rgba(255,80,80,.3); color: #fff; }

/* Ventanas Minimizadas en la Barra de Tareas */
#taskbar-apps {
  display: flex; gap: 6px; margin-left: 10px; overflow-x: auto;
}
.taskbar-item {
  padding: 6px 12px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: all .15s; white-space: nowrap;
}
.taskbar-item:hover { background: rgba(255,255,255,0.15); color: #fff; }
.taskbar-item .dot { width: 6px; height: 6px; border-radius: 50%; background: #7ba2ff; }

/* Ventanas Ocultas (Minimizadas) */
.window.minimized { display: none !important; }

/* App Navegador Web */
.web-app { display: flex; flex-direction: column; gap: 10px; }
.web-toolbar { display: flex; gap: 8px; }
.web-toolbar input {
  flex: 1; padding: 8px 12px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 8px;
  color: #fff; font-size: 13px; outline: none;
}
.web-toolbar input:focus { border-color: #7ba2ff; }
.web-toolbar button {
  padding: 8px 14px; background: linear-gradient(135deg, #5c7dff, #8a6bff);
  border: none; border-radius: 8px; color: #fff; font-weight: 600;
  cursor: pointer; font-size: 13px;
}
#webList { list-style: none; }
#webList li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
  font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
#webList li:hover { background: rgba(123,162,255,0.15); }
#webList .site-icon { font-size: 16px; }
#webList .site-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#webList .del-btn {
  background: none; border: none; color: #ff6b6b; cursor: pointer; font-size: 14px;
  opacity: 0; transition: opacity .15s;
}
#webList li:hover .del-btn { opacity: 1; }

/* --- REDIMENSIONAR VENTANAS --- */
.window {
  resize: both; /* Permite estirar */
  overflow: hidden;
  min-width: 300px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.win-body {
  flex: 1; /* Para que el cuerpo ocupe el espacio restante */
}

/* --- MODAL GRANDE PARA TABLAS --- */
.modal-box.large-modal {
  max-width: 90vw;
  width: 900px;
  height: 80vh;
  display: flex;
  flex-direction: column;
}
.modal-box.large-modal .table-responsive {
  flex: 1;
  overflow: auto;
  margin-bottom: 15px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
}

/* --- TABLA EXCEL ESTILOS --- */
.excel-table { width: 100%; border-collapse: collapse; font-size: 13px; color: #fff; }
.excel-table th { padding: 10px; background: rgba(0,0,0,0.3); border-bottom: 2px solid rgba(255,255,255,0.2); text-align: left; position: sticky; top: 0; z-index: 10;}
.excel-table td { padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.excel-table tr:hover { background: rgba(255,255,255,0.05); }
.excel-input { background: transparent; border: 1px solid transparent; color: #fff; padding: 4px; width: 100%; border-radius: 4px; }
.excel-input:focus { background: rgba(255,255,255,0.1); border-color: #4f8cff; outline: none; }
.btn-save-row { background: #28a745; border: none; color: white; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.btn-save-row:hover { background: #218838; }

/* BUSCADOR GLOBAL */
.global-search {
  padding: 6px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  width: 250px;
  outline: none;
  transition: all 0.3s;
}
.global-search:focus {
  background: rgba(255,255,255,0.15);
  border-color: #7ba2ff;
  width: 300px;
}
.search-results {
  position: absolute;
  top: 35px;
  left: 0;
  width: 100%;
  background: rgba(20, 24, 35, 0.95);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  z-index: 99999;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.search-item {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-item:hover { background: rgba(255,255,255,0.1); }
.search-item .type { font-size: 11px; color: #aaa; background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 4px;}

/* Arreglo para que la ventana no colapse */
.files-app { display: flex; flex-direction: column; min-height: 250px; }
#fileList { min-height: 100px; flex: 1; overflow-y: auto; padding: 0; margin-top: 10px; }
.breadcrumb { cursor: pointer; user-select: none; }
.crumb:hover { background: rgba(255,255,255,0.1); }


/* ========== SCROLLBARS ELEGANTES ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(123, 162, 255, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(123, 162, 255, 0.6);
}

/* Arreglo para que la ventana no colapse y el breadcrumb siempre se vea */
.files-app { 
  display: flex; 
  flex-direction: column; 
  height: 100%; 
  min-height: 250px; 
}
#fileList { 
  flex: 1; 
  overflow-y: auto; 
  padding: 0; 
  margin-top: 10px; 
  list-style: none;
}
.breadcrumb { 
  min-height: 34px; /* Asegura que siempre haya espacio */
  display: flex; 
  align-items: center; 
  gap: 4px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
}
.crumb { padding: 4px 8px; border-radius: 6px; cursor: pointer; transition: background 0.15s; }
.crumb:hover { background: rgba(123, 162, 255, 0.2); }
.crumb.current { background: rgba(123, 162, 255, 0.2); cursor: default; font-weight: 600; }
.sep { color: rgba(255,255,255,.35); font-size: 11px; }

/* BOTONES DE VENTANAS MINIMIZADAS */
.taskbar-item {
  padding: 6px 12px; 
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); 
  border-radius: 10px;
  color: rgba(255,255,255,0.8); 
  font-size: 12px; 
  font-weight: 500;
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  gap: 6px;
  transition: all .15s; 
  white-space: nowrap;
}
.taskbar-item:hover { 
  background: rgba(255,255,255,0.15); 
  color: #fff; 
}
.taskbar-item .dot { 
  width: 6px; 
  height: 6px; 
  border-radius: 50%; 
  background: #7ba2ff; 
  box-shadow: 0 0 5px #7ba2ff;
}

/* GALERÍA DE IMÁGENES */
.img-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.img-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  border-color: rgba(123, 162, 255, 0.5);
}

.img-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.img-card:hover .img-preview {
  transform: scale(1.05);
}

.img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 10px 8px 6px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.2s;
}

.img-card:hover .img-overlay {
  opacity: 1;
}

.img-name {
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.img-del-btn {
  background: rgba(255, 80, 80, 0.8);
  border: none;
  border-radius: 6px;
  color: white;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
}

.img-del-btn:hover {
  background: #ff3b3b;
}