body {
    background-color: #1e1e1e;
    color: #f0f0f0;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 10px;
}

#formX {
    width: 25%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align: center;
    margin: 0 auto;
    gap: 10px;
    margin-bottom: 20px;
    background-color: #2a2a2a;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

#formX select#action {
  width: 220px;
}

#formX input#key {
  width: 90px;
}

#formX select,
#formX input[type="text"],
#formX input[type="submit"] {
    padding: 8px;
    border-radius: 5px;
    border: none;
    background-color: #3a3a3a;
    color: #fff;
    font-size: 14px;
}

#sendBtn:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.3;
}
#sendBtn:enabled {
  background-color: #3a3a3a;
  color: #fff;
  cursor: pointer;
}
#sendBtn {
  transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}


#formX input[type="submit"] {
    background-color: #6d29f2;
    cursor: pointer;
    transition: background-color 0.3s;
}

#formX input[type="submit"]:hover {
    background-color: #8754f6;
}

#mensaje {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #a77fe3;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1000;
}

#mensaje.show {
  opacity: 1;
  transform: translateY(0);
}

#mensaje.hide {
  opacity: 0;
  transform: translateY(-20px);
}


.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 10px;
}

.category-row {
    width: 100%;
    display: flex;
    gap: 75px;
    margin-bottom: 10px;
}

.status-category {
    flex: 1 1 auto;
    max-width: 2000px;
    min-width: 300px;
}

.category-row.34row .status-category:nth-child(1) {
  flex: 1 1 15%;
}

.category-row..34row .status-category:nth-child(2) {
  flex: 1 1 85%;
}

.category-title {
    color: #ccccff;
    text-align: center;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 1px solid #ccccff;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.module-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 90px;
    justify-content: center;
}

.module-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

#log-container {
    height: 500px;
    overflow-y: auto;
    border: 1px solid #444;
    padding: 15px;
    background-color: #121212;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) inset;
    white-space: pre-wrap;
}

#schedule-container {
    height: 510px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #1a1a1a;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4) inset;
}

.bottom-panel {
    display: flex;
    margin: 0 20px;
    gap: 0;
}

.panel-section {
    display: flex;
    flex-direction: column;
    height: 630px;
}

.panel-section:nth-child(1) {
    flex: 0 0 75%;
    max-width: 75%;
    margin-right: 0;
}

.panel-section:nth-child(2) {
    flex: 0 0 25%;
    max-width: 25%;
    margin-left: 0;
}

.panel-section h3 {
    margin: 0;
    padding: 10px;
    background-color: #1f1f1f;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#schedule-container {
    background-color: #1a1a1a;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid #444;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4) inset;
}

#schedule-container .next-task {
    background-color: #262626;
    padding: 10px;
    margin-bottom: 10px;
    color: #f0f0f0;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 0.9rem;
}

.scheduled-task {
    font-size: 0.8rem;
    color: #ccc;
    padding: 4px 0;
    border-bottom: 1px dashed #333;
}

.scheduled-task.inactive {
    color: #777;
    font-style: italic;
}

.dot {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    background-color: #777777;
}

.timestamp {
    font-size: 0.8em;
    color: #aaa;
    margin-top: 4px;
}

.module-info .timestamp {
    margin-left: 10px;
}

.status-idle { background-color: #777777; }
.status-running { background-color: #ff952b; animation: pulseGlow 2s infinite; }
.status-success { background-color: #39ff2b; }
.status-error { background-color: #ff2b4b; }
.status-background { background-color: #00ffff; animation: pulseGlowSlow 4s infinite;}


@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0px rgba(0, 255, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.9);
    }
    100% {
        box-shadow: 0 0 0px rgba(0, 255, 255, 0.7);
    }
}

@keyframes pulseGlowSlow {
    0% {
        box-shadow: 0 0 0px rgba(0, 255, 255, 0.9);
    }
    25% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.65);
    }
    50% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    }
    75% {
        box-shadow: 0 0 0px rgba(0, 255, 255, 0.65);
    }
    100% {
        box-shadow: 0 0 0px rgba(0, 255, 255, 0.9);
    }
}


@media (max-width: 1200px) {
  .bottom-panel {
    flex-direction: column;
  }

  .panel-section {
    flex: 0 0 auto;
    max-width: 100%;
    margin: 10px 0;
    height: auto;
  }

  .panel-section:nth-child(1),
  .panel-section:nth-child(2) {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .module-card {
    display: none;
  }

  .status-category {
    display: none;
  }
  .content-container {
    display: none;
  }
    #log-container {
    height: 900px;
  }
  #schedule-container {
    height: 300px;
  }
}