﻿:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --bg: #f8f9fa;
    --text: #333;
    --border: #dcdde1;
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --success-color: #27ae60;
}
/* Contenedor Principal */

.upload-container {
    width: 100%;
    background: white;
    border-radius: 12px;
    text-align: center;
}

/* Botón Principal */
.trigger-btn {
    background: var(--primary);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
    transition: all 0.3s;
}

    .trigger-btn:hover {
        opacity: 0.9;
        transform: scale(1.02);
    }
/* Área de Carga */

.drop-zone {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .drop-zone:hover, .drop-zone.drag-over {
        border-color: var(--accent-color);
        background: #f0f8ff;
    }

.drop-zone__input {
    display: none;
}
/* Iconos y Texto */

.upload-icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
}

.drop-zone__prompt {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.file-info {
    margin-top: 15px;
    font-weight: bold;
    color: var(--primary-color);
    display: none; /* Se activa con JS */
}

.dwg-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 10px;
}

.button-float {
    z-index: 10000;
    position: fixed;
    bottom: 5px;
    right: 15px;
    padding: 5px;
}

.container-button-float {
    position: relative;
}

.title-button-float {
    position: absolute;
    top: 20px;
    left: -150px;
    width: 150px;
    background-color: #1975C5;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 3px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(-10px);
    visibility: hidden;
    transition: all 0.4s ease; /* puedes ajustar la duración */
}

#title-span-btn {
    color: white;
    font-size: 13px;
}

.container-button-float:hover .title-button-float {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.btn-float {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: solid 1px transparent;
    background-color: #1975C5;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

    .btn-float:hover {
        background-color: #277dc9;
    }

.inpt-option {
    height: 30px;
    padding: 3px;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid transparent;
    outline: none;
    text-align: center;
    min-width: 300px
}

    .inpt-option:focus {
        border-bottom: 2px solid #1975C5;
    }

.options-btn {
    border: transparent;
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
    background-color: #2A4D69;
    color: white;
    font-size: 12px;
    transition: background-color .3s ease-in-out;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.options-btn:hover {
    background-color: #FF6C37;
}

.input-value-test {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 3px;
}

.input-active-value {
    width: 60px;
    text-align: center;
}

.icon-alert-test {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
}

.button-edit-value {
    border: none;
    cursor: pointer;
    background-color: #1975C5;
    width: 20px;
    height: 20px;
    color: white;
    padding: 3px;
    border-radius: 50%;
    font-size: 10px;
}

.btn-primary {
    border: transparent;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    background-color: #2A4D69;
    color: white;
    font-size: 14px;
    transition: background-color .3s ease-in-out;
}

    .btn-primary:hover {
        background-color: #FF6C37;
    }

.search-toools {
    width: 100%;
    padding-bottom: 5px;
    display: flex;
    flex-direction: row;
    justify-content: end;
    padding: 10px;
}

.target-btn-group-options {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.detail-target {
    font-size: 12px;
    font-weight: bold;
}

.comment-target {
    display: flex;
    flex-direction: column;
}

    .comment-target span {
        font-size: 12px;
    }
/*ACORDEON*/

.acordeon-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.patern-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: end;
    box-sizing: border-box;
}

.patern-display {
    border: solid 1px #EAEAEA;
    display: flex;
    width: 100%;
    height: 60px;
    flex-direction: row;
    padding: 10px;
    background-color: #F3F3F3;
    border-radius: 5px;
    box-sizing: border-box;
    cursor: pointer;
    justify-content: space-between;
}

.edit-enclosure {
    display: none;
}

    .edit-enclosure.active-show {
        display: block;
    }

.group-btn-edit {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

    .group-btn-edit.show-btn-active {
        display: flex;
    }

.show {
    display: none;
}

.enclosure-label {
    font-size: 16px;
}

.left-distplay {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    width: 50%;
}

.group-buton-enclosure {
    display: flex;
    box-sizing: border-box;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.button-enclosure {
    border: none;
    padding: 0;
    margin: 0;
    color: #6C6C6C;
    font-size: 17px;
    cursor: pointer;
}

.container-children {
    margin-left: 15px;
}

.container-display {
    display: none;
    width: 100%;
}

.deploy {
    display: block;
}

.visible {
    display: block !important;
}

.right-caret.active {
    transform: rotate(90deg);
}
/* BOTÓN DE DESCARGA */

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

    .btn-download:hover {
        background-color: var(--primary);
        color: white;
    }

    .btn-download svg {
        fill: currentColor;
    }
/* --- Grupo de Botones de Acción --- */

.action-group {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #f8fafc;
    border-bottom: 1px solid #f8fafc;
}

.btn-action {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}
    /* Colores al pasar el mouse por cada botón */

    .btn-action:hover {
        transform: scale(1.05);
        background: #f8fafc;
    }

.btn-check:hover {
    color: #22c55e;
    border-color: #22c55e;
    background: #f0fdf4;
}

.btn-edit:hover {
    color: #3b82f6;
    border-color: #3b82f6;
    background: #eff6ff;
}

.btn-attach:hover {
    color: #f59e0b;
    border-color: #f59e0b;
    background: #fffbeb;
}

.btn-delete:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: #fef2f2;
}
/*ACTUALIZACION INPUTS*/

.logo-placeholder {
    font-weight: bold;
    color: #7f8c8d;
}

.section-header {
    display: flex;
    align-items: center;
    margin: 25px 0 15px;
    color: var(--accent);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .section-header::after {
        content: "";
        flex: 1;
        margin-left: 15px;
        height: 1px;
        background-color: var(--border);
    }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

textarea {
    height: 100px;
    min-height: 100px;
    max-width: 100%;
    min-width: 100%;
    box-sizing: border-box;
}

input, textarea, select {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

    input:focus, textarea:focus, select:focus {
        border-color: var(--accent);
    }
/* Estilo para los botones */

.actions {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

    .btn-primary:hover {
        background: #2980b9;
    }

.btn-ghost {
    background: #ecf0f1;
    color: #2c3e50;
}

    .btn-ghost:hover {
        background: #bdc3c7;
    }

.btn-add-report {
    background: none;
    color: var(--accent);
    border: 1px dashed var(--accent);
    margin-top: 10px;
}

    .btn-add-report:hover {
        background: #ebf5fb;
    }
/* Contenedor de referencias */

.dynamic-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-remove {
    background: #ff7675;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 6px;
    cursor: pointer;
}
/* Estilo de la zona de carga de archivos */

.file-upload {
    border: 2px dashed var(--border);
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    background: #fafafa;
}

@media (max-width:800px) {
    .patern-display {
        width: 100%;
        min-width: 100%;
    }

    .patern-container {
        width: 100%;
    }

    .search-toools {
        justify-content: center;
        padding: 0px;
    }

    .button-float {
        bottom: 50px;
    }
}
