
/* Ajustes para tema claro - mostrar solo el dark */
[data-theme="light"] .brand-section img[src*="-dark"] {
    display: block;
}

[data-theme="light"] .brand-section img[src*="-light"] {
    display: none;
}

/* Ajustes para tema oscuro - mostrar solo el light */
[data-theme="dark"] .brand-section img[src*="-dark"] {
    display: none;
}

[data-theme="dark"] .brand-section img[src*="-light"] {
    display: block;
}
[data-theme="dark"] .status-section img {
    filter: invert(1) brightness(1.2) contrast(1.2);
}
body {
    font-family: monospace, 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--front-color);
    background-color: var(--bg-page-color);
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

.container {
    margin: 10px auto;
    padding: 20px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}
h2 {
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 3px 15px;
    width: 100%;
    background-color: var(--bg-color);
}

section {
    /* background-color: white; */
    border-radius: 4px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    margin-bottom: 2rem;
    padding: 2rem;
    border: 1px solid var(--primary-color);
}

input[type="text"],
input[type="date"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--front-color);
    border-radius: 4px;
    resize: vertical;
}

textarea {
    min-height: 200px;
}

.button {
    border: 1px var(--front-color) solid;
    padding: 10px;
    margin-left: 0px;
    border-radius: 4px;
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
    width: 100%;
    font-family: monospace;
    font-size: 15px;
    color: var(--front-color);
    background-color: var(--bg-color);
}

.button:hover {
    background-color: #f6f7f8ba;
}

.button:disabled {
    background-color: var(--disabled-color);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Header superior con los logos */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: 70px;
    z-index: 2;
    position: relative;
}

.site-header {
    position: absolute;
    top: 6px;
    right: 25px;
    left: 25px;
    height: 89px;
    overflow: hidden;
    border: 1px solid var(--front-color);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

#iocsList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    .filepond--root {
        margin-bottom: 20px;
    }
    
    .filepond--drop-label {
        color: #555;
    }
    
    .filepond--label-action {
        text-decoration-color: #00a8ff;
    }
    
    .filepond--panel-root {
        background-color: #edf0f4;
    }
}

.ioc-tag {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.ioc-tag button {
    background: none;
    border: none;
    color: white;
    margin-left: 6px;
    cursor: pointer;
    padding: 0px;
    margin-top: 0px;
    margin-right: 10px;
}

#fixedPromptPart {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    color: #000;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid lightgray;
    display: none;
}

#fixedPromptPart h1, 
#fixedPromptPart h2, 
#fixedPromptPart h3, 
#fixedPromptPart h4 {
    border: none;
}

.login-container {
    position: absolute;
    top: 105px;
    right: 25px;
    left: 25px;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--front-color);
    background-color: var(--bg-page-color);
}

.password-change-container {
    position: absolute;
    top: 160px;
    right: 25px;
    left: 25px;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--front-color);
    display: none;
    background-color: var(--bg-page-color);
}

.login-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

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

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: var(--bg-input-color) !important;
}

.clear-logs-button {
    margin-top: 1rem;
    width: 100%;
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.clear-logs-button:hover {
    opacity: 0.9;
}

.ql-editor {
    color: #000;
  }

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.button-group .button {
    flex: 1;
}

#ligths {
    padding-top: 3px;
    padding-left: 16px;
    border: 1px solid var(--front-color);
    width: 53px;
    border-radius: 24px;
    font-size: 27px;
}


/* Cada grupo en horizontal */
.control-group {
  display: flex;
  flex-direction: row;
  gap: 5px;
}


/* Ajustar los botones del tabs-container */
.envelop2{
    width: 35px;
    height: 35px;
    color: var(--front-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid var(--front-color);
    position: relative;
    flex: 0 0 auto;
    transition: all 0.3s ease;
    border-radius: 4px;
}


/* Estado activo específico para botones de tema */
.theme-btn.active {
    background-color: var(--selected-2-color);
}

.error-message {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid #d32f2f;
    margin: 10px 0;
    font-size: 14px;
}