:root {
    --brand-color: #292a69; --brand-color-light: #3d3e8c; --brand-color-dark: #1b1c4b;
    --bg-dark: #0f1015; --glass-bg: rgba(255, 255, 255, 0.03); --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff; --text-muted: #a0a4b8;
    --orange: #ff7b00; --green: #00d26a; --red: #ff3366; --blue: #3b82f6;
    --input-bg: rgba(0, 0, 0, 0.2); --input-focus-border: rgba(255, 255, 255, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-dark); color: var(--text-primary); min-height: 100vh; display: flex; justify-content: center; position: relative; overflow-x: hidden; }

.background-animation { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden;}
.blob { position: absolute; filter: blur(80px); opacity: 0.5; border-radius: 50%; animation: float 20s infinite alternate ease-in-out; }
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, var(--brand-color) 0%, rgba(41,42,105,0) 70%); }
.blob-2 { bottom: -20%; right: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(100, 43, 115, 0.4) 0%, rgba(41,42,105,0) 70%); animation-delay: -5s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(10%, 15%) scale(1.1); } }

.container { width: 100%; padding: 2rem; z-index: 10; }
.login-container { max-width: 450px; display: flex; align-items: center; justify-content: center; height: 100vh;}
.disable { display: none !important; }

.glass-panel {
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px;
    padding: 2.5rem; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); width: 100%;
}

.logo-container { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.login-logo { width: 60px; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); }
.header-logo { width: 40px; height: auto; }
.logo-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: linear-gradient(135deg, var(--brand-color-light), var(--brand-color)); border-radius: 12px; box-shadow: 0 4px 20px rgba(41, 42, 105, 0.4); }
.mini-logo { width: 36px; height: 36px; border-radius: 8px;}

.app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.header-left { display: flex; align-items: center; gap: 12px; }

.hosts-section { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--glass-border); width: 100%; box-sizing: border-box; }
.global-box { background: rgba(0,0,0,0.15); border-radius: 16px; padding: 20px; border: 1px solid var(--glass-border); min-width: 0; box-sizing: border-box; }
.global-box h4 { margin-bottom: 1rem; color: #fff; font-weight: 500; font-size: 1.1rem; }
.input-row { display: grid; grid-template-columns: 2fr 0.8fr 1fr; gap: 12px; }

.input-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.input-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; }

input, .select-css {
    background: var(--input-bg); border: 1px solid var(--glass-border); border-radius: 10px;
    padding: 12px 14px; color: white; font-family: inherit; font-size: 0.95rem; outline: none; transition: all 0.3s ease;
}
.select-css { appearance: none; cursor: pointer; }
.select-css option { background: var(--bg-dark); color: white; }
input:focus, .select-css:focus { border-color: var(--input-focus-border); background: rgba(0, 0, 0, 0.4); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05); }

.btn-primary { background: linear-gradient(135deg, var(--brand-color-light), var(--brand-color)); color: white; border: none; padding: 14px 24px; border-radius: 10px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.2s; }
.btn-primary:hover { filter: brightness(1.2); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: white; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; transition: all 0.2s; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-test { background: rgba(41, 42, 105, 0.4); border: 1px solid var(--brand-color); color: white; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 0.75rem; margin-top:4px; transition: 0.2s; }
.btn-test:hover { background: var(--brand-color); }

.account-row { display: grid; grid-template-columns: 2.2fr 0.8fr 2.2fr 0.8fr 3fr; gap: 16px; align-items: self-start; background: rgba(0,0,0,0.2); padding: 20px; border-radius: 16px; border: 1px solid var(--glass-border); margin-bottom: 16px; width: 100%; transition: transform 0.2s; box-sizing: border-box; }
.account-row:hover { background: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.15); }
.cell { display: flex; flex-direction: column; min-width: 0; }
.cell-status { display: flex; flex-direction: column; justify-content: center; height: 100%; gap: 8px; min-width: 0;}

/* Progress Bar y Status */
.prog-container { width: 100%; background: rgba(255,255,255,0.1); border-radius: 8px; height: 8px; overflow: hidden; margin-top: 4px; }
.prog-bar { height: 100%; width: 0%; background: var(--blue); transition: width 0.3s ease; }
.prog-infotext { font-size: 0.8rem; color: var(--text-muted); display: flex; justify-content: space-between; }
.size-badge { background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 4px; color: #fff;}

.status-badge { padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; text-align: center; display: inline-block; width: fit-content; }
.s-pending { background: rgba(255,255,255,0.1); color: #ccc;}
.s-success { background: rgba(0, 210, 106, 0.2); color: var(--green);}
.s-error { background: rgba(255, 51, 102, 0.2); color: var(--red);}
.s-progress { background: rgba(59, 130, 246, 0.2); color: var(--blue);}

.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; border-top: 1px solid var(--glass-border); padding-top: 2rem; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: white; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#toast-container { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 12px; z-index: 100; }
.toast { background: rgba(15, 16, 21, 0.95); border: 1px solid var(--glass-border); padding: 16px 20px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 12px; transform: translateX(120%); transition: transform 0.4s ease; }
.toast.show { transform: translateX(0); }
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
.toast-msg { font-size: 0.9rem; font-weight: 500; }
