body { background: #080808; color: #fff; font-family: 'Segoe UI', system-ui, sans-serif; margin: 0; display: flex; flex-direction: column; align-items: center; min-height: 100vh; }
.title-neon { 
    color: #fff; margin: 20px 0; letter-spacing: 4px; text-transform: uppercase; font-size: 2.2rem; font-weight: 900;
    text-shadow: 0 0 10px #00adb5, 0 0 20px #00adb5; 
    animation: neon-glow 1.5s ease-in-out infinite alternate;
}
@keyframes neon-glow { from { opacity: 0.8; text-shadow: 0 0 10px #00adb5; } to { opacity: 1; text-shadow: 0 0 20px #00adb5, 0 0 30px #00adb5; } }

.container { width: 95%; max-width: 1200px; background: #111; padding: 20px; border-radius: 20px; border: 1px solid #222; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.main-layout { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.column { flex: 1; min-width: 320px; display: flex; flex-direction: column; gap: 20px; }

input, select, textarea { 
    width: 100%; padding: 12px; background: #1a1a1a; border: 1px solid #333; border-radius: 12px; 
    color: #fff; font-size: 1rem; transition: 0.3s; box-sizing: border-box;
}
input:focus, select:focus { border-color: #00adb5; box-shadow: 0 0 8px rgba(0,173,181,0.4); outline: none; }

/* Estilo específico para el selector de color cuadrado */
input[type="color"].square-picker, select.square-picker {
    width: 60px;
    height: 60px;
    padding: 4px;
    cursor: pointer;
    border: 1px solid #333;
    border-radius: 12px;
    background: #1a1a1a;
    display: block;
}
input[type="color"].square-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"].square-picker::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

.btn { 
    padding: 14px 24px; border: none; border-radius: 12px; font-weight: 800; cursor: pointer; 
    text-transform: uppercase; transition: 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary { background: #00adb5; color: #080808; }
.btn-primary:hover { background: #00cfd8; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,173,181,0.4); }
.btn-danger { background: #ff4b2b; color: #fff; }
.generate-btn {
    min-height: 64px;
    padding: 18px 24px;
    font-size: 1.25rem;
}

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 5000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: #111; border: 1px solid #00adb5; border-radius: 20px; padding: 30px; width: 100%; max-width: 500px; position: relative; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; color: #555; }

.qr-preview { 
    background: #fff; border-radius: 15px; padding: 20px; display: flex; align-items: center; 
    justify-content: center; min-height: 300px; box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}
.qr-preview img { max-width: 100%; height: auto; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; max-height: 60vh; overflow-y: auto; }
.gallery-item { background: #1a1a1a; border-radius: 10px; overflow: hidden; border: 1px solid #333; transition: 0.3s; position: relative; }
.gallery-item:hover { border-color: #00adb5; }
.delete-btn {
    position: absolute; top: 5px; right: 5px; background: rgba(255, 75, 43, 0.8);
    border: none; border-radius: 5px; color: white; padding: 5px; cursor: pointer;
    z-index: 10; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.gallery-item .delete-btn { opacity: 1; }
.delete-btn:hover { background: #ff4b2b; transform: scale(1.1); }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-item .info { padding: 8px; font-size: 0.8rem; color: #aaa; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.admin-user-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}
.admin-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #222;
}
.admin-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}
.admin-user-info strong,
.admin-user-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-user-info small {
    color: #aaa;
}
.admin-user-edit {
    flex: 0 0 auto;
    padding: 7px 12px;
    font-size: 0.8rem;
}

.logo-preview-container {
    position: relative;
    width: 60px;
    height: 60px;
    border: 1px solid #333;
    border-radius: 10px;
    background: #000;
    overflow: visible;
}
.logo-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}
.logo-preview-container.is-empty .delete-btn {
    display: none;
}
.logo-preview-container .delete-btn {
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1;
}
.logo-drop-zone {
    width: 132px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.logo-drop-zone.is-dragover {
    border-color: #00cfd8 !important;
    background: rgba(0, 173, 181, 0.12);
    box-shadow: 0 0 16px rgba(0, 173, 181, 0.45);
}

.lang-selector { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; }
.lang-selector select {
    background: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    width: auto;
}

/* Mobile portrait optimization */
@media (max-width: 600px) {
    .main-layout { flex-direction: column; }
    .column { min-width: 100%; }
    .title-neon { font-size: 1.6rem; }
}

/* Login specific */
.login-box { 
    width: 340px; background: #111; border: 1px solid #00adb5; border-radius: 20px; 
    padding: 40px; display: flex; flex-direction: column; gap: 15px; box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
