/* IBM Plex Mono Font Styles */
/* Import Hanken Grotesk font */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&display=swap');
/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Poppins font styles classes */
.poppins-thin {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.poppins-extralight {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.poppins-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.poppins-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.poppins-thin-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.poppins-extralight-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.poppins-light-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.poppins-regular-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.poppins-medium-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.poppins-semibold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.poppins-bold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.poppins-extrabold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.poppins-black-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: italic;
}

/* Hanken Grotesk styles for headers */
.hanken-grotesk-regular {
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.hanken-grotesk-medium {
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.hanken-grotesk-semibold {
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.hanken-grotesk-bold {
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

/* Apply Poppins to all headers */
h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  font-style: normal;
}

/* Specific heading styles */
h1 {
  font-weight: 300; /* light */
}

h2 {
  font-weight: 700; /* bold */
}

h3 {
  font-weight: 600; /* semibold */
}

h4, h5, h6 {
  font-weight: 500; /* medium */
}

/* Apply IBM Plex Mono as the default font for the entire site */
body {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
}

* {
    font-family: "IBM Plex Mono", monospace;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 0 20px 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* For smaller screens, allow full width with padding */
@media (max-width: 920px) {
    .container {
        max-width: 100%;
        padding: 15px;
    }
}

.form-section {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background-color: #000;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #f5bf42;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-img {
    height: 40px;
    width: auto;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    z-index: 100;
    color: #333;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -335px; /* Ajustado para que quede completamente fuera */
    width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto; /* Añadido para permitir scroll si el contenido es muy largo */
}

.nav-menu.active {
    transform: translateX(-335px); /* Ajustado para coincidir con la posición inicial */
}

.menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 0.5rem;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.logout-btn {
    color: #dc3545;
    margin-top: 2rem;
}

    /* Estilos para la sección de autenticación de LinkedIn */
    .linkedin-auth-section {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        margin-bottom: 10px;
    }

    .token-expiry {
        margin-top: 5px;
        font-size: 0.8em;
        color: #666;
    }

    /* Estilos para el modal de código manual */
    .instruction-box {
        background-color: #f8f9fa;
        border-left: 4px solid #4a90e2;
        padding: 15px;
        margin: 15px 0;
        border-radius: 4px;
    }

    .instruction-box h3 {
        margin-top: 0;
        color: #4a90e2;
    }

    .instruction-box ol {
        padding-left: 20px;
    }

    .manual-instructions-alert {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #fff;
        border-left: 4px solid #3498db;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 15px 20px;
        border-radius: 4px;
        max-width: 300px;
        z-index: 1000;
        font-size: 14px;
        animation: slideIn 0.3s ease-out forwards;
    }
    
    .manual-instructions-alert p {
        margin: 8px 0;
        color: #555;
    }
    
    .manual-instructions-alert strong {
        color: #333;
    }
    
    .manual-instructions-alert button {
        background-color: #3498db;
        color: white;
        border: none;
        padding: 5px 10px;
        border-radius: 3px;
        margin-top: 10px;
        cursor: pointer;
        font-size: 12px;
    }
    
    .manual-instructions-alert button:hover {
        background-color: #2980b9;
    }
    
    @keyframes slideIn {
        from { transform: translateX(100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }
    
    /* Estilos para modal de código manual */
    .manual-auth-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
    }
    
    .manual-auth-content {
        background-color: white;
        border-radius: 8px;
        padding: 25px 30px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        width: 90%;
        max-width: 500px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .manual-auth-content h3 {
        margin-top: 0;
        color: #333;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        color: #555;
    }
    
    .form-group input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
    }
    
    .manual-auth-buttons {
        display: flex;
        justify-content: flex-end;
        margin-top: 20px;
        gap: 10px;
    }
    
    .manual-auth-buttons button {
        padding: 8px 15px;
        border-radius: 4px;
        cursor: pointer;
        border: none;
        font-size: 14px;
    }
    
    .manual-auth-buttons button:first-child {
        background-color: #3498db;
        color: white;
    }
    
    .manual-auth-buttons button:first-child:hover {
        background-color: #2980b9;
    }
    
    .manual-auth-buttons button:last-child {
        background-color: #e74c3c;
        color: white;
    }
    
    .manual-auth-buttons button:last-child:hover {
        background-color: #c0392b;
    }

/* Ajuste para el contenido principal */
body {
    margin: 0;
    padding-top: 72px; /* Altura del header + padding */
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .logo-img {
        height: 32px;
    }
}

/* Ajustes generales para el contenido principal */
main {
    margin-top: 60px; /* Altura del header */
    padding: 1rem;
}

@media (min-width: 768px) {
    main {
        margin-top: 70px;
        padding: 2rem;
    }
}

.main-header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo img {
    width: 200px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.nav-separator {
    width: 1px;
    height: 20px;
    background-color: #ddd;
}

.nav-item:hover {
    color: #007bff;
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.nav-item span {
    font-size: 0.9rem;
    text-align: center;
}

.nav-separator {
    width: 1px;
    height: 40px;
    background-color: #dee2e6;
    margin: 0 0.5rem;
}

/* Estilo para el botón de cerrar sesión que se añade dinámicamente */
.btn-logout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #dc3545;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    color: #c82333;
    transform: translateY(-2px);
}

.btn-logout i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.btn-logout span {
    font-size: 0.9rem;
    text-align: center;
}

.main-header .btn {
    min-width: 120px;
    text-align: center;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.main-header .btn:hover {
    background-color: #0056b3;
    text-decoration: none;
    color: white;
}

.tagline {
    color: #6c757d;
    font-size: 1.2em;
    margin-top: 10px;
}

.main-nav {
    margin-bottom: 40px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #0056b3;
}

.welcome-section {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.welcome-section .logo-container {
    margin-bottom: 2rem;
}

.welcome-section .auth-logo {
    max-width: 250px;
    height: auto;
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.welcome-section .tagline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.auth-buttons a {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.auth-buttons .primary-button {
    background-color: #007bff;
    color: white;
}

.auth-buttons .primary-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.auth-buttons .secondary-button {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.auth-buttons .secondary-button:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 2rem 1rem;
        margin-top: 1rem;
    }

    .welcome-section .auth-logo {
        max-width: 200px;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .auth-buttons {
        flex-direction: column;
    }

    .auth-buttons a {
        width: 100%;
        justify-content: center;
    }
}

.message {
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.social-networks {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.input-group {
    display: flex;
    align-items: center;
}

.input-prefix {
    background-color: #e9ecef;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: #495057;
}

.input-group input {
    border-radius: 0 4px 4px 0;
    flex: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Añade estos estilos a los existentes */

/* Estilos para el header con navegación */
header nav {
    display: flex;
    gap: 10px;
}

/* Estilos para la tabla */
.table-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #343a40;
}

tr:hover {
    background-color: #f8f9fa;
}

td {
    color: #495057;
}

.social-username {
    color: #007bff;
}

.empty-message {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background-color: #c82333;
}

.delete-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Estilo para el modal de confirmación */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.confirm-delete {
    background-color: #dc3545;
    color: white;
}

.cancel-delete {
    background-color: #6c757d;
    color: white;
}

/* Estilos para la página de detalle */
.user-info {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.network-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.network-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.token-fields {
    display: grid;
    gap: 10px;
}

.token-fields input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.token-fields input[readonly] {
    background: #f5f5f5;
}

.actions {
    margin-top: 20px;
    text-align: right;
}

.primary-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.primary-button:hover {
    background: #0056b3;
}

.user-link {
    color: #007bff;
    text-decoration: none;
}

.user-link:hover {
    text-decoration: underline;
}

.twitter-actions {
    margin-top: 20px;
}

.tweet-container {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    display: none;
}

.tweet-container.active {
    display: block;
}

.tweet-text {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.4;
}

.tweet-meta {
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.5;
}

.tweet-meta a {
    color: #007bff;
    text-decoration: none;
}

.tweet-meta a:hover {
    text-decoration: underline;
}

.secondary-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.secondary-button:hover {
    background: #5a6268;
}

.secondary-button:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

#charCount {
    position: absolute;
    bottom: 5px;
    right: 10px;
    color: #666;
    font-size: 0.8em;
}

.social-networks {
    margin: 20px 0;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    cursor: pointer;
}

.preview-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

.content-preview {
    font-size: 1.1em;
    line-height: 1.5;
    white-space: pre-wrap;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 1em;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.radio-group {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 30px;
    margin: 15px 0;
    padding: 10px 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    white-space: nowrap;
}

.radio-group input[type="radio"] {
    cursor: pointer;
    margin: 0;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.users-table th, 
.users-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.users-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.users-table tr:hover {
    background-color: #f5f5f5;
}

.user-link {
    color: #007bff;
    text-decoration: none;
}

.user-link:hover {
    text-decoration: underline;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.network-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1rem;
    border: none;
    background: none;
    box-shadow: none;
    gap: 10px;
    padding: 0;
    margin: 5px 0;
}

.network-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    width: 100%;
}

.network-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.network-header i.fa-chevron-right {
    font-size: 0.875rem;
    color: #666;
}

.network-header i.fab {
    font-size: 1.25rem;
    color: #000;
    width: 20px;
    text-align: center;
}

.network-username {
    font-size: 0.875rem;
    color: #000;
    font-weight: 400;
}

.language-flag {
    width: 20px;
    height: auto;
    border-radius: 2px;
    margin-left: auto;
}

.fa-chevron-right {
    transition: transform 0.3s ease;
}

.network-card:not(.collapsed) .fa-chevron-right {
    transform: rotate(90deg);
}

.network-details {
    width: 100%;
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tokens-table {
    margin-top: 15px;
    width: 100%;
}

.tokens-table table {
    width: 100%;
    border-collapse: collapse;
}

.tokens-table th,
.tokens-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tokens-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.token-value {
    display: flex;
    gap: 8px;
    align-items: center;
}

.token-value input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
}

.token-value button {
    padding: 8px;
    background: #aaaaaa;
    color: white;
    border: 1px solid #999;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.token-value button:hover {
    background: #888888;
}

.token-value button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.network-details {
    padding: 1rem;
    background-color: #ffffff;
}

.social-networks-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.network-card {
    background: white;
    border-radius: 8px;
}

.network-card h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.tokens-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.tokens-section th,
.tokens-section td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tokens-section th {
    background: #f8f9fa;
    font-weight: 600;
}

.tokens-section input[type="password"],
.tokens-section input[type="text"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
}

.tokens-section button {
    padding: 6px 12px;
    margin: 0 4px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #f0f0f0;
}

.tokens-section button:hover {
    background: #e0e0e0;
}

.token-name {
    font-weight: bold;
    white-space: nowrap;
}

.token-value {
    max-width: 300px;
}

.token-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-text {
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    flex: 1;
}

.copy-button {
    padding: 4px 8px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.copy-button:hover {
    background: #0056b3;
}

.token-date {
    white-space: nowrap;
    color: #6c757d;
    font-size: 0.9em;
}

.social-handle {
    color: #666;
    font-size: 0.9em;
}

.social-handle:empty::after {
    content: "No configurado";
    color: #999;
    font-style: italic;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

/* Estilos para la vista previa */
.preview-section {
    margin-bottom: 30px;
}

.content-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.preview-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
}

.preview-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.preview-header .action-buttons {
    display: flex;
    gap: 0.5rem;
}

.preview-content {
    position: relative;
    margin: 1rem 0;
}

.preview-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
}

.preview-content .image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.btn-edit {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.btn-edit:hover {
    background-color: #0056b3;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.btn-delete:hover {
    background-color: #c82333;
}

.preview-meta {
    margin-top: 15px;
}

.suggestion {
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 0.9em;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Estilos para la sección de redes sociales */
.networks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
    box-sizing: border-box;
}

.network-option {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    box-sizing: border-box;
    overflow: hidden;
}

.network-option:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.network-option input[type="checkbox"] {
    display: none;
}

/* Cuando el checkbox está marcado, aplicar el color al contenedor padre */
.network-option input[type="checkbox"]:checked ~ .network-content {
    color: #333333;
}

.network-option input[type="checkbox"]:checked + .network-content {
    background-color: transparent;
}

/* Aplicar el color de fondo al contenedor principal cuando está seleccionado */
.network-option input[type="checkbox"]:checked {
    background-color: #ffbc02;
}

.network-option.checked,
.network-option:has(input[type="checkbox"]:checked) {
    background-color: #ffbc02;
    border-color: #fe5413;
}

.network-option .network-content {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 100%;
}

.network-option .network-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.network-option .network-name {
    display: none;
}

.network-option .network-handle {
    color: #666;
    font-size: 0.9em;
}

.language-flag {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    object-fit: cover;
    margin-left: 8px;
}

.coming-soon {
    font-size: 0.8em;
    color: #888;
    margin-left: auto;
    font-style: italic;
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

@media (max-width: 768px) {
    body {
        padding: 70px 0px;
    }

    .container {
        padding: 20px;
    }

    .networks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px 0;
    }

    .network-option {
        height: 40px;
        padding: 0 8px;
    }

    .network-option .network-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }

    .content-type-options {
        flex-direction: column;
        gap: 10px;
        padding: 0 10px;
    }

    .content-type-button {
        padding: 12px;
    }

    .content-type-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
        overflow: hidden;
    }
}

/* Colores específicos para los iconos */
.network-option .fa-x-twitter {
    color: #000000;
}

.network-option .fa-threads {
    color: #000000;
}

.network-option .fa-cloud {
    color: #0063ff;
}

.network-option input[type="checkbox"] {
    margin: 0;
}

.network-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.content-type-options {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
}

.content-type-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
    font-size: 1.1em;
}

.content-type-button.ai {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
}

.content-type-button.original {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #45a049;
}

.content-type-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-type-button.ai:hover {
    background-color: #f8f9fa;
}

.content-type-button.original:hover {
    background-color: #45a049;
}

.content-type-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-type-svg-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.drop-zone {
    min-height: 150px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
}

.drop-zone.drag-over {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.drop-zone-content {
    text-align: center;
    color: #666;
}

.drop-zone-content i {
    font-size: 1.5em;
    color: #999;
    margin-bottom: 10px;
}

.drop-zone-content p {
    margin: 0;
    font-size: 1em;
}

/* Estilos para el sistema de pasos */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 2rem auto;
    max-width: 600px;
    position: relative;
    padding: 0 20px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #ddd;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    background: white;
    padding: 0 10px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-bottom: 8px;
}

.step-title {
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

.progress-step.active .step-number {
    background: #000000;
}

.progress-step.active .step-title {
    color: #000000;
    font-weight: bold;
}

.progress-step.completed .step-number {
    background: #000000;
}

/* Contenido de los pasos */
.step-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.step-content.active {
    display: block;
}

.step-content p {
    text-align: center; margin:10px 0 10px 0;
}

.step-content p a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Navegación entre pasos */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
    width: 100%;
}

/* Cuando hay un solo botón en step-navigation, ocupará todo el ancho */
.step-navigation button:only-child {
    width: 100%;
}

/* Cuando hay dos botones, cada uno ocupa el 50% */
.step-navigation button {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.btn-prev {
    background-color: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

.btn-next {
    background-color: #000;
    color: white;
    border: 1px solid #000;
}

.btn-prev:hover {
    background-color: #e0e0e0;
}

.btn-next:hover {
    background-color: #333;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .step-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }

    .step-navigation button {
        width: 100%;
    }
}

/* Estilos para las previsualizaciones de redes sociales */
.social-post-preview {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #e1e8ed;
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.2s;
    max-width: 600px;
    margin: 1rem auto;
}

/* Estilos comunes para el encabezado del post */
.post-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
}

.post-header-info {
    flex: 1;
}

.post-author {
    font-weight: 700;
    color: #14171a;
    font-size: 15px;
    margin-right: 5px;
}

.post-username {
    color: #657786;
    font-size: 15px;
    margin-right: 5px;
}

.post-date {
    color: #657786;
    font-size: 15px;
}

.post-content {
    color: #14171a;
    font-size: 16px;
    line-height: 1.4;
    margin: 10px 0;
    white-space: pre-wrap;
}

.post-media {
    margin: 10px 0;
    border-radius: 12px;
    overflow: hidden;
    max-height: 400px;
}

.post-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Estilos específicos para Twitter */
.twitter-post {
    background: #fff;
}

.twitter-post .post-actions {
    display: flex;
    justify-content: space-between;
    max-width: 425px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
}

.twitter-post .action-button {
    display: flex;
    align-items: center;
    color: #657786;
    font-size: 14px;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.twitter-post .action-button:hover {
    color: #1da1f2;
}

/* Estilos específicos para Threads */
.threads-post {
    background: #fff;
    font-family: 'Asap', sans-serif;
}

.threads-post .post-actions {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.threads-post .action-button {
    color: #000;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s;
}

.threads-post .action-button:hover {
    opacity: 1;
}

/* Estilos específicos para Bluesky */
.bluesky-post {
    background: #fff;
}

.bluesky-post .post-actions {
    display: flex;
    gap: 24px;
    margin-top: 15px;
}

.bluesky-post .action-button {
    display: flex;
    align-items: center;
    color: #657786;
    gap: 6px;
    cursor: pointer;
    transition: color 0.2s;
}

.bluesky-post .action-button:hover {
    color: #0063ff;
}

/* Estilos para los contadores de interacciones */
.action-count {
    font-size: 14px;
    color: #657786;
}

/* Estilos para múltiples imágenes */
.post-media-grid {
    display: grid;
    gap: 2px;
    margin: 10px 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-media-grid[data-images="1"] img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.post-media-grid[data-images="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.post-media-grid[data-images="3"] {
    grid-template-columns: repeat(2, 1fr);
}

.post-media-grid[data-images="3"] img:first-child {
    grid-row: span 2;
}

.post-media-grid[data-images="4"] {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.post-media-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}

/* Animaciones y efectos hover */
.social-post-preview:hover {
    background-color: #f8f9fa;
}

.action-button {
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .social-post-preview {
        margin: 1rem;
        border-radius: 8px;
    }

    .post-media {
        border-radius: 8px;
    }

    .post-actions {
        padding: 10px 0;
    }

    .post-avatar {
        width: 40px;
        height: 40px;
    }
}

/* Estilos para el encabezado de red social */
.preview-header-network {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-top: 20px;
}

.preview-header-network .network-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.preview-header-network span {
    font-weight: 500;
    font-size: 18px;
    color: #333;
    font-family: "Poppins", sans-serif;
}

.preview-header-network h2 {
    font-weight: 500;
    font-size: 18px;
    color: #333;
    font-family: "Poppins", sans-serif;
    margin: 0;
}

.networks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.network-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.network-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.network-item img.network-icon {
    width: 24px;  /* <<< ADDED: Constrain icon width */
    height: 24px; /* <<< ADDED: Constrain icon height */
    margin-right: 8px;
    object-fit: contain; /* Ensure icon scales nicely if needed */
}

.network-item span {
    font-size: 0.95em;
}

/* Style for selected network items */
.network-item.selected {
  background-color: #e0f7ff; /* Light blue background */
  border-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Ensure custom placeholder styles apply */
.custom-placeholder::placeholder {
    color: #adb5bd; 
    opacity: 1; 
}

.btn-icon.btn-delete {
    background-color: #aaaaaa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 5px 10px;
}

.btn-icon.btn-delete:hover {
    background-color: #dc3545;
}

/* Network settings section at the bottom of the card */
.network-settings {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.network-settings .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.network-settings .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .network-settings .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .network-settings .row {
        flex-direction: column;
    }
}