﻿/* ==========================================
   ADMIN CREATE OVERLAY
========================================== */

.AdminDesign-overlay {
    position: fixed;
    inset: 0;
    z-index: 18000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 28, 60, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-sizing: border-box;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}


    /* ==========================================
   OVERLAY VISIBLE
========================================== */

    .AdminDesign-overlay.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }


/* ==========================================
   WINDOW
========================================== */

.AdminDesign-window {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #dce8f6;
    border-radius: 18px;
    box-shadow: 0 24px 65px rgba(3, 28, 60, 0.28);
    overflow: hidden;
    box-sizing: border-box;
    transform: translateY(14px) scale(0.985);
    transition: transform 0.25s ease;
    user-select:none;
}


/* ==========================================
   WINDOW VISIBLE
========================================== */

.AdminDesign-overlay.show
.AdminDesign-window {
    transform: translateY(0) scale(1);
}


/* ==========================================
   HEADER
========================================== */

.AdminDesign-header {
    position: relative;
    flex-shrink: 0;
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e4edf7;
    box-sizing: border-box;
}


/* ==========================================
   HEADER ICON
========================================== */

.AdminDesign-headerIcon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
}


    /* ==========================================
   HEADER ICON CREATE
========================================== */

    .AdminDesign-headerIcon.Create {
        background: linear-gradient( 135deg, #248bff, #006be8 );
        box-shadow: 0 6px 16px rgba(0, 107, 232, 0.22);
    }


    /* ==========================================
   HEADER ICON EDIT
========================================== */

    .AdminDesign-headerIcon.Edit {
        background: linear-gradient( 135deg, #16a36a, #0d7f50 );
        box-shadow: 0 6px 16px rgba(12, 175, 145, 0.22);
    }


/* ==========================================
   HEADER TEXT
========================================== */

.AdminDesign-headerText {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}


/* ==========================================
   HEADER TITLE
========================================== */

.AdminDesign-headerTitle {
    color: #071f48;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==========================================
   HEADER DESCRIPTION
========================================== */

.AdminDesign-headerDescription {
    color: #6b7f9f;
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==========================================
   CLOSE BUTTON
========================================== */

.AdminDesign-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #48617f;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}


    .AdminDesign-close:hover {
        background: #edf5ff;
        color: #0878ff;
    }


    .AdminDesign-close:active {
        transform: scale(0.95);
    }


/* ==========================================
   CONTENT
========================================== */

.AdminDesign-content {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    padding: 22px 24px 26px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #c4d4e7 transparent;
}


    /* ==========================================
   CONTENT SCROLLBAR
========================================== */

    .AdminDesign-content::-webkit-scrollbar {
        width: 6px;
    }


    .AdminDesign-content::-webkit-scrollbar-track {
        background: transparent;
    }


    .AdminDesign-content::-webkit-scrollbar-thumb {
        background: #c4d4e7;
        border-radius: 999px;
    }


        .AdminDesign-content::-webkit-scrollbar-thumb:hover {
            background: #9db3cc;
        }


    /* ==========================================
   CONTENT EMPTY
========================================== */

    .AdminDesign-content:empty::before {
        content: "Selecciona una opción para cargar el formulario.";
        min-height: 220px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #8495ad;
        font-size: 13px;
        text-align: center;
    }


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 700px) {

    .AdminDesign-overlay {
        padding: 0 24px;
    }




    .AdminDesign-header {
        min-height: 76px;
        padding: 14px 15px;
    }


    .AdminDesign-headerIcon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }


    .AdminDesign-headerTitle {
        font-size: 18px;
    }


    .AdminDesign-headerDescription {
        font-size: 11px;
    }


    .AdminDesign-content {
        padding: 18px 16px 24px;
    }
}


