/* ============================================================
   enlace.css — Estilos para dialogo.php e index.php
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #000;
    color: #fff;
    font-family: 'Trebuchet MS', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HEADER ─────────────────────────────────────────── */
header {
    text-align: center;
    padding: 30px 20px 10px;
}

header h1 {
    font-size: 28px;
    letter-spacing: 2px;
    color: #fff;
}

/* ── MAIN ────────────────────────────────────────────── */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ── CUADRO DE DIÁLOGO ───────────────────────────────── */
.dialog-box {
    background: #111;
    border: 1px solid #333;
    border-radius: 18px;
    width: 800px;
    min-height: 500px;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    box-shadow: 0 0 40px rgba(255,255,255,0.05);
    transition: box-shadow 0.3s ease;
}

.dialog-box:hover {
    box-shadow: 0 0 60px rgba(255,255,255,0.08);
}

.dialog-box h2 {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 10px;
}

/* ── INPUTS ──────────────────────────────────────────── */
.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.input-group label {
    font-size: 13px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    padding-left: calc(50% - 250px);
}

.input-group input {
    width: 500px;
    height: 50px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 10px;
    color: #fff;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 15px;
    padding: 0 18px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input::placeholder {
    color: #555;
}

.input-group input:focus {
    border-color: #666;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

/* ── LISTA DE ENLACES INGRESADOS ─────────────────────── */
#lista-enlaces {
    width: 500px;
    max-height: 180px;
    overflow-y: auto;
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #ccc;
    line-height: 1.8;
}

#lista-enlaces:empty::before {
    content: 'Aún no hay enlaces ingresados.';
    color: black;
    font-style: italic;

}

.item-enlace {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #1e1e1e;
}

.item-enlace:last-child {
    border-bottom: none;
}

.item-enlace span {
    color: #aaa;
    font-size: 12px;
    max-width: 380px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-enlace .num {
    color: #555;
    min-width: 28px;
    font-size: 11px;
}

/* ── BOTONES ─────────────────────────────────────────── */
.btn-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.btn {
    width: 100px;
    height: 50px;
    border: 1px solid #555;
    border-radius: 10px;
    background: #1a1a1a;
    color: #fff;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
    letter-spacing: 1px;
}

.btn:hover {
    background: #2a2a2a;
    border-color: #888;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-enter {
    border-color: #4a8a4a;
    color: #7ecb7e;
}

.btn-enter:hover {
    background: #1a2e1a;
    border-color: #7ecb7e;
}

.btn-reset {
    border-color: #8a4a4a;
    color: #cb7e7e;
}

.btn-reset:hover {
    background: #2e1a1a;
    border-color: #cb7e7e;
}

/* ── MENSAJE DE ESTADO ───────────────────────────────── */
#mensaje {
    font-size: 13px;
    min-height: 20px;
    color: #7ecb7e;
    text-align: center;
    transition: opacity 0.3s ease;
}

#mensaje.error {
    color: #cb7e7e;
}

/* ── INDEX — ENLACES ALEATORIOS ──────────────────────── */
.enlaces-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}

a.enlace {
    color: #000;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 25px;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a.enlace:hover {
    opacity: 0.75;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #444;
    border-top: 1px solid #1a1a1a;
    margin-top: auto;
}
