/* ============================================================
   VECTOREXEC - TELEGRAM
   ============================================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f7fafc;
    min-height: 100vh;
}

/* Header */
.app-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #0D47A1;
}

.main-nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #0D47A1;
}

.nav-link.active {
    color: #0D47A1;
    border-bottom-color: #0D47A1;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.username {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
}

.btn-logout {
    padding: 6px 14px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-logout:hover {
    background: #c53030;
}

/* Contenido */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
}

.page-header .subtitle {
    font-size: 14px;
    color: #718096;
}

/* Estado */
.status-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #48bb78;
}

.status-card.not-configured {
    border-left-color: #e53e3e;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-icon {
    font-size: 32px;
}

.status-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
}

.status-content p {
    font-size: 13px;
    color: #718096;
}

/* Configuración */
.config-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.config-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 24px;
}

.instructions {
    background: #ebf8ff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    border-left: 4px solid #3182ce;
}

.instructions h3 {
    font-size: 14px;
    font-weight: 600;
    color: #2b6cb0;
    margin-bottom: 8px;
}

.instructions ol {
    margin-left: 20px;
    font-size: 13px;
    color: #2d3748;
    line-height: 1.8;
}

.instructions code {
    background: #2d3748;
    color: #f7fafc;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Formulario */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus {
    border-color: #0D47A1;
    outline: none;
}

.form-group small {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    color: #2d3748;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0D47A1;
}

/* Botones */
.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    padding: 8px 16px;
    background: #e2e8f0;
    color: #2d3748;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-danger {
    padding: 12px 24px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}

.btn-danger:hover {
    background: #c53030;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Mensajes */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    margin-bottom: 16px;
}

.message.show {
    display: block;
}

.message.error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.message.success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.message.info {
    background: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #90cdf4;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
        gap: 8px;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .user-menu {
        margin-left: auto;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .config-card {
        padding: 20px;
    }

    .status-card {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .form-actions {
        flex-direction: column;
    }
}
