body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
}

.bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.app {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 240px;
    background: #161b22;
    padding: 16px;
    box-sizing: border-box;
    border-right: 1px solid #30363d;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
}
.sidebar h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #fff;
}
.nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #c9d1d9;
    text-decoration: none;
    margin-bottom: 8px;
    background: #0d1117;
    border: 1px solid #30363d;
}
.nav a.active {
    background: #238636;
    border-color: #238636;
    color: #fff;
}
.content {
    flex: 1;
    padding: 24px;
}
.card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 16px;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.field {
    margin-bottom: 10px;
}
.field label {
    display: block;
    margin-bottom: 6px;
    color: #8b949e;
}
.input,
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #c9d1d9;
}
.btn {
    background: #238636;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
}
.btn.secondary {
    background: #30363d;
}
.menu-item {
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}
.embed {
    background: #0c1116;
    border-left: 8px solid var(--embed-color, #5865f2);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: 90px;
}
.embed .thumb {
    width: 80px;
    height: 80px;
    background: #161b22;
    border-radius: 6px;
    object-fit: cover;
    display: none;
}
.embed .content {
    flex: 1;
}
.embed .title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}
.embed .desc {
    white-space: pre-wrap;
    color: #c9d1d9;
}

/* Estilos para el nuevo bloque de Account Manager */
.account-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: #0d1117;
    border-radius: 12px;
}
.account-header h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}
/* Nuevo estilo para mover solo el título del bot */
.bot-display .account-header h3 {
    margin-left: 3px;
}
.roblox-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #238636;
    object-fit: cover;
    margin-bottom: 10px;
}
.username-text {
    font-weight: bold;
    font-size: 1.1em;
    color: #fff;
}

/* Base style for all status indicators */
.status-indicator {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8em;
    margin-top: 5px;
}

/* This rule applies a background color only to the main account's status */
.account-display:not(.bot-display) .status-indicator {
    background-color: #ffc107;
    color: #000;
}

.separator {
    width: 80%;
    border: 0;
    height: 1px;
    background-color: #30363d;
    margin: 20px 0;
}

/* --- ESTILOS PARA LA PESTAÑA DE SCRIPT FARM (CORREGIDOS) --- */
.page-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.page-title {
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 10px;
}
.page-content p {
    text-align: center;
}

/* El bloque de código */
.code-box {
    max-width: 600px;
    width: 100%;
    background-color: #1e1e1e;
    border: 1px solid #30363d;
    border-radius: 8px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.1em;
    line-height: 1.5;
    white-space: pre; 
    overflow-x: auto;
    word-break: normal;
    text-align: left;
    color: #d4d4d4;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    display: flex; /* La corrección principal */
    flex-direction: column; /* Asegura el apilado vertical */
    align-items: flex-start; /* **Esta es la clave:** alinea el contenido arriba */
}

.code-box pre {
    padding: 20px;
    margin: 0;
    white-space: pre; /* Asegura el formato pre-formateado */
}

/* Colores de sintaxis tipo VSC */
.code-box .comment {
    color: #6a9955;
}

.code-box .keyword {
    color: #c586c0;
}

.code-box .string {
    color: #ce9178;
}

.code-box .variable {
    color: #9cdcfe;
}

/* Contenedor de las opciones */
.settings-container {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.setting-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.setting-field label {
    color: #c9d1d9;
    font-size: 1em;
    margin-bottom: 5px;
}

.setting-input {
    width: 100%;
    padding: 10px;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #d4d4d4;
    font-size: 1em;
    text-align: center;
}

.setting-input::placeholder {
    color: #8b949e;
    opacity: 1;
}

/* El contenedor del botón ahora es independiente del flujo de la página */
.copy-btn-container {
    width: 100%;
    text-align: center;
    position: fixed;
    bottom: 20px;
    right: 40; /* Aquí es donde ajustas la distancia desde el borde derecho */
}

/* El botón de copiar */
.btn {
    background: #238636;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
    max-width: 200px;
}

.btn:hover {
    background-color: #2c974b;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.remove-bot-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #ff5e5e;
    position: relative;
    top: -27px;
    right: -47px;
    transition: color 0.2s;
}

.remove-bot-btn:hover {
    color: #ff3333;
}

/* Estilo base para el texto DHC */
.dhc-text {
    font-weight: bold;
    /* NO definir color aquí, se define en las clases específicas */
}

/* Colores específicos con mayor especificidad */
.dhc-text.green-text {
    color: #10fa3f !important; /* Verde */
}

.dhc-text.red-text {
    color: #f44336 !important; /* Rojo */
}
/* El mensaje de feedback de copia */
.copy-feedback {
    display: block;
    margin-top: 10px;
    color: #2ecc71;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
}

.error-message {
    color: #ff5e5e;
    font-size: 1em;
    text-align: center;
    margin-top: 20px;
}
