body { 
  font-family: Arial, sans-serif; 
  background:#282c34; 
  color:white; 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  justify-content:center; 
  min-height:100vh; 
  margin: 0;
  padding: 20px;
}
.container {
  background:#3b3f47; 
  padding:20px; 
  border-radius:10px;
  width: 100%;
  max-width: 600px;
}
textarea, select, input { 
  width:100%; 
  border-radius:5px; 
  border:none; 
  padding:10px; 
  font-size:16px; 
  box-sizing: border-box;
}
textarea { 
  height:100px; 
}
select { 
  margin-bottom: 10px; 
  background: white; 
}
button { 
  margin-top:10px; 
  padding:10px 20px; 
  font-size:16px; 
  border:none; 
  border-radius:5px; 
  cursor:pointer; 
  background:#61dafb; 
  color:#000; 
}
button:hover { 
  background:#21a1f1; 
  color:white; 
}
.no-channels { 
  color: #ff6b6b; 
  margin-bottom: 10px; 
}
#message-status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
  display: none;
}
.success {
  background-color: #4CAF50;
  color: white;
}
.error {
  background-color: #f44336;
  color: white;
}
.tabs {
  display: flex;
  margin-bottom: 15px;
}
.tab {
  padding: 10px 15px;
  cursor: pointer;
  background: #4b5056;
  margin-right: 5px;
  border-radius: 5px 5px 0 0;
}
.tab.active {
  background: #61dafb;
  color: #000;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
}
.color-preview {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: middle;
}
.embed-preview {
  margin-top: 20px;
  border-left: 4px solid #61dafb;
  padding: 10px;
  background: #2c2f36;
}
.embed-title {
  font-weight: bold;
  margin-bottom: 5px;
}
.embed-description {
  margin-bottom: 10px;
  font-size: 14px;
}
.embed-fields {
  margin-top: 10px;
}
.embed-field {
  margin-bottom: 5px;
}
.embed-field-name {
  font-weight: bold;
}
.embed-image {
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 100%;
}

.embed-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 5px;
}
.field-container {
  border: 1px solid #4b5056;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}
.add-field-btn {
  background: #4b5056;
  color: white;
  margin-bottom: 15px;
}
.remove-field-btn {
  background: #f44336;
  padding: 5px 10px;
  font-size: 12px;
  margin-top: 5px;
}

.roles-container {
  margin-bottom: 15px;
  background: #2c2f36;
  padding: 10px;
  border-radius: 5px;
}

.roles-container h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #61dafb;
}

.roles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-item {
  display: flex;
  align-items: center;
  background: #3b3f47;
  padding: 5px 10px;
  border-radius: 5px;
}

.role-name {
  margin-right: 8px;
  font-weight: bold;
}

.insert-role-btn {
  background: #4b5056;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 0;
}

.insert-role-btn:hover {
  background: #61dafb;
  color: #000;
}

.channels-container {
  margin-bottom: 15px;
  background: #2c2f36;
  padding: 10px;
  border-radius: 5px;
}

.channels-container h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #61dafb;
}

.channels-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-item {
  display: flex;
  align-items: center;
  background: #3b3f47;
  padding: 5px 10px;
  border-radius: 5px;
}

.channel-name {
  margin-right: 8px;
  font-weight: bold;
  color: #7289da; /* Color azul de Discord para canales */
}

.insert-channel-btn {
  background: #4b5056;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 0;
}

.insert-channel-btn:hover {
  background: #61dafb;
  color: #000;
}

.roles-container, .channels-container {
  margin-bottom: 10px;
  background: #2c2f36;
  padding: 8px;
  border-radius: 5px;
}

.roles-container h4, .channels-container h4 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #61dafb;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.roles-container h4::after, .channels-container h4::after {
  content: "▼";
  font-size: 12px;
  cursor: pointer;
}

.roles-list, .channels-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 5px;
  max-height: 150px;
  overflow-y: auto;
}

.role-item, .channel-item {
  display: flex;
  align-items: center;
  background: #3b3f47;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.role-name, .channel-name {
  margin-right: 5px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
}

.channel-name {
  color: #7289da;
}

.insert-role-btn, .insert-channel-btn {
  background: #4b5056;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  margin-top: 0;
  margin-left: auto;
  transition: background-color 0.2s, transform 0.1s;
}

.insert-role-btn:hover, .insert-channel-btn:hover {
  background: #61dafb;
  color: #000;
  transform: scale(1.05);
}

.insert-role-btn:active, .insert-channel-btn:active {
  transform: scale(0.95);
}

/* Estilos para colapsar/expandir las secciones */
.collapsed .roles-list,
.collapsed .channels-list {
  display: none;
}

.collapsed h4::after {
  content: "►";
}
