/* ============================================================
   DTaQ Employee Search Kiosk Application - index.css
   ============================================================ */

:root {
    --primary-blue: #1e5bb8;
    --primary-blue-hover: #164898;
    --accent-blue: #3b82f6;
    --light-blue-bg: #eaf2fd;
    --soft-bg: #f4f7fc;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-sub: #6b7280;
    --border-color: #d1e2f7;
    --border-highlight: #4889ed;
    --dark-keyboard-bg: #32353a;
    --key-bg: #494d54;
    --key-active: #60656e;
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow-soft: 0 10px 30px rgba(27, 72, 148, 0.08);
    --shadow-hover: 0 16px 36px rgba(27, 72, 148, 0.15);
}

* {
    box-sizing: border-box;
    user-select: none;
}

body {
    width: 1920px;
    height: 1080px;
    margin: 0;
    padding: 0;
    background-color: #eaf2fd;
    color: var(--text-main);
    overflow: hidden;
    font-family: 'scdream', 'Pretendard', 'Malgun Gothic', sans-serif;
}

.main_cont {
    width: 1920px;
    height: 1080px;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #edf4ff 0%, #dbe9fc 100%);
    background-image: radial-gradient(circle at 85% 15%, rgba(68, 138, 255, 0.12) 0%, transparent 40%),
                      radial-gradient(circle at 10% 85%, rgba(41, 98, 255, 0.08) 0%, transparent 40%);
    overflow: hidden;
}

/* ------------------------------------------------------------
   Common Header (Screens 2, 3, 4)
   ------------------------------------------------------------ */
.app-header {
    width: 1920px;
    height: 90px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid rgba(200, 215, 235, 0.6);
    box-shadow: 0 4px 15px rgba(0, 30, 80, 0.03);
    z-index: 10;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.brand-logo-svg {
    height: 48px;
    width: auto;
}

.header-title {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.5px;
}

.btn-home {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #3b5998;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(59, 89, 152, 0.2);
}

.btn-home:hover {
    background-color: #2d4373;
    transform: translateY(-1px);
}

.btn-home svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ------------------------------------------------------------
   Page Layout Grid (Screens 2, 3, 4)
   ------------------------------------------------------------ */
.page-container {
    display: none;
    width: 1920px;
    height: 1080px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-container.active {
    display: flex;
    opacity: 1;
}

.page-content-wrapper {
    display: flex;
    width: 1920px;
    height: 990px;
    padding: 30px 40px;
    gap: 30px;
}

.main-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.sidebar-section {
    width: 440px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

/* ------------------------------------------------------------
   Sidebar Controls
   ------------------------------------------------------------ */
.search-box-wrap {
    background: #ffffff;
    border: 2.5px solid #2b7fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 6px 16px rgba(43, 127, 255, 0.12);
}

.search-box-wrap input {
    flex: 1;
    border: none;
    font-size: 22px;
    font-weight: 600;
    color: #1a202c;
    background: transparent;
    outline: none;
}

.search-box-wrap input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.btn-search-clear {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    margin-right: 8px;
    border: none;
}

.btn-search-trigger {
    width: 50px;
    height: 50px;
    background: #2b7fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.btn-search-trigger:hover {
    background: #1a66ff;
}

.dept-select-wrap {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 4px 6px 4px 18px;
    position: relative;
    cursor: pointer;
    height: 58px;
}

.dept-select-wrap select {
    width: 100%;
    height: 100%;
    border: none;
    font-size: 20px;
    font-weight: 500;
    color: #334155;
    background: transparent;
    outline: none;
    appearance: none;
    cursor: pointer;
    padding-right: 50px;
    z-index: 2;
}

.dept-select-icon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #2b7fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    pointer-events: none;
    z-index: 1;
}

/* Organization Tree Card */
.org-tree-card {
    flex: 1;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.org-tree-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    padding-left: 6px;
}

.org-tree-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

.tree-node {
    margin-bottom: 6px;
}

.tree-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tree-label:hover {
    background-color: #f1f5f9;
}

.tree-label.active {
    background-color: #e8f1ff;
    color: #1d64d8;
    font-weight: 700;
}

.tree-label.root-node {
    background-color: #ebf3fe;
    color: #1d64d8;
    font-weight: 700;
}

.tree-arrow {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    font-size: 12px;
    color: #64748b;
}

.tree-node.expanded > .tree-label > .tree-arrow {
    transform: rotate(90deg);
}

.tree-icon {
    font-size: 16px;
}

.tree-children {
    display: none;
    padding-left: 26px;
    margin-top: 4px;
}

.tree-node.expanded > .tree-children {
    display: block;
}

/* ------------------------------------------------------------
   SCREEN 1: Landing Page
   ------------------------------------------------------------ */
#page-landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 50px 60px 70px 60px;
    width: 1920px;
    height: 1080px;
    position: absolute;
    top: 0;
    left: 0;
}

.landing-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.landing-title-box {
    margin-top: 40px;
    margin-bottom: 60px;
    text-align: center;
}

.landing-title {
    font-size: 48px;
    font-weight: 700;
    color: #11367d;
    letter-spacing: -1px;
}

.landing-cards-wrap {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1600px;
    justify-content: center;
    align-items: center;
}

.card-item {
    flex: 1;
    background: #ffffff;
    border-radius: 36px;
    padding: 44px 36px 36px 36px;
    box-shadow: 0 20px 40px rgba(16, 52, 115, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 520px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(16, 52, 115, 0.16);
    border-color: #2b7fff;
}

.card-info {
    z-index: 2;
}

.card-title {
    font-size: 38px;
    font-weight: 700;
    color: #102a5c;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.card-desc {
    font-size: 20px;
    color: #4b5563;
    line-height: 1.5;
    font-weight: 400;
}

.card-img-wrap {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.card-img-wrap img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 30, 80, 0.12));
}

/* ------------------------------------------------------------
   SCREEN 2: Search Results List Page
   ------------------------------------------------------------ */
.main-list-card {
    flex: 1;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.list-top-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.list-dept-name {
    font-size: 40px;
    font-weight: 700;
    color: #102a5c;
}

.list-result-count {
    font-size: 20px;
    color: #475569;
    font-weight: 500;
}

.list-result-count span {
    color: #2b7fff;
    font-weight: 700;
}

/* Table Header */
.table-header {
    display: flex;
    background: #e2ecf9;
    border-radius: 12px;
    padding: 16px 30px;
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 700;
    color: #334155;
    text-align: center;
}

.col-name { width: 22%; text-align: center; }
.col-id { width: 24%; text-align: center; }
.col-dept { width: 30%; text-align: center; }
.col-pos { width: 24%; text-align: center; }

/* Core Swiper Library CSS Fixes */
.emp-swiper.swiper {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 510px;
}

.emp-swiper .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.emp-swiper .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
    display: block;
}

.swiper-container-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 510px;
    max-height: 510px;
}

.emp-list-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 510px;
}

.emp-row-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #dbeafe;
    border-radius: 16px;
    height: 64px;
    min-height: 64px;
    padding: 0 30px;
    font-size: 21px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.emp-row-card:hover {
    border-color: #2b7fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 127, 255, 0.12);
}

.emp-row-card .col-name { color: #0f172a; font-weight: 700; }
.emp-row-card .col-id { color: #334155; font-weight: 500; }
.emp-row-card .col-dept { color: #334155; }
.emp-row-card .col-pos {
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.row-arrow-icon {
    color: #2b7fff;
    font-size: 22px;
    font-weight: bold;
}

/* Custom Swiper Navigation Controls */
.list-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 24px;
    height: 50px;
}

.pg-btn {
    width: 90px;
    height: 50px;
    background: #dbe8fb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #1d4ed8;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.1);
}

.pg-btn:hover {
    background: #2b7fff;
    color: #ffffff;
}

.pg-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #e2e8f0;
    color: #94a3b8;
}

.pg-indicator {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    min-width: 80px;
    text-align: center;
}

/* ------------------------------------------------------------
   SCREEN 3: Detail Page
   ------------------------------------------------------------ */
.detail-cards-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.detail-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 36px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

/* Profile Info Top Card */
.profile-info-grid {
    display: flex;
    gap: 36px;
    align-items: center;
}

.profile-avatar-wrap {
    width: 170px;
    height: 210px;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    flex-shrink: 0;
}

.profile-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #64748b;
}

.profile-table {
    flex: 1;
    width: 100%;
    border-collapse: collapse;
}

.profile-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.profile-table tr:last-child {
    border-bottom: none;
}

.profile-table th {
    width: 140px;
    padding: 12px 10px;
    text-align: left;
    font-size: 20px;
    font-weight: 600;
    color: #64748b;
}

.profile-table td {
    padding: 12px 10px;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

/* Assigned Duties Section */
.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.section-heading svg {
    width: 24px;
    height: 24px;
    fill: #2b7fff;
}

.duties-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 6px;
    margin-bottom: 26px;
}

.duties-item {
    font-size: 19px;
    color: #334155;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.duties-item::before {
    content: "•";
    color: #64748b;
    font-size: 22px;
}

/* Timeline Section */
.career-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 20px;
    border-left: 2.5px solid #2b7fff;
    margin-left: 10px;
    margin-top: 14px;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 19px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 3.5px solid #2b7fff;
    border-radius: 50%;
}

.timeline-date {
    width: 200px;
    font-weight: 700;
    color: #334155;
}

.timeline-dept {
    flex: 1;
    color: #475569;
}

.timeline-pos {
    width: 140px;
    color: #475569;
}

/* Detail Page Action Buttons */
.detail-actions-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-led-big {
    background: #2b7fff;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(43, 127, 255, 0.25);
    transition: all 0.2s ease;
}

.btn-led-big:hover {
    background: #1d64d8;
    transform: translateY(-2px);
}

.btn-back-list {
    background: #dbe8fb;
    color: #1d4ed8;
    font-size: 22px;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-back-list:hover {
    background: #cbdcf7;
}

/* ------------------------------------------------------------
   SCREEN 4: Search Input Page with Virtual Keyboard
   ------------------------------------------------------------ */
#page-search .main-section {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.search-guide-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 70px 40px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    margin-top: 20px;
    width: 100%;
    border: 1px solid #e2e8f0;
}

.search-guide-title {
    font-size: 34px;
    font-weight: 700;
    color: #2b7fff;
    margin-bottom: 16px;
}

.search-guide-sub {
    font-size: 26px;
    color: #334155;
    font-weight: 600;
}

.search-guide-sub span {
    color: #2b7fff;
}

/* Virtual Keyboard Container - Anchored to Bottom */
.virtual-keyboard-modal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #32353a;
    border-radius: 36px 36px 0 0;
    padding: 40px 30px 40px 30px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 50;
}

.vk-close-btn {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #94a3b8;
    font-size: 36px;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 5;
}

.vk-close-btn:hover {
    color: #ffffff;
}

.vk-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.vk-key {
    background: #494d54;
    color: #ffffff;
    border-radius: 14px;
    height: 72px;
    min-width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
    border: none;
}

.vk-key:active, .vk-key.active {
    background: #60656e;
    transform: translateY(2px);
}

.vk-key.wide-key {
    padding: 0 24px;
    font-size: 22px;
    min-width: 110px;
}

.vk-key.btn-vk-delete {
    background: #434850;
    min-width: 170px;
    font-size: 22px;
}

.vk-key.btn-vk-search {
    background: #2b7fff;
    min-width: 170px;
    font-size: 24px;
    font-weight: 700;
}

.vk-key.btn-vk-search:hover {
    background: #1a66ff;
}

/* ------------------------------------------------------------
   LED Enlarged Fullscreen Modal
   ------------------------------------------------------------ */
.led-modal-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 1080px;
    background: rgba(10, 20, 45, 0.85);
    backdrop-filter: blur(10px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.led-modal-overlay.active {
    display: flex;
}

.led-card {
    background: #ffffff;
    border-radius: 30px;
    width: 900px;
    padding: 50px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.led-close-btn {
    position: absolute;
    top: 24px;
    right: 30px;
    font-size: 36px;
    color: #64748b;
    cursor: pointer;
}

.led-header-title {
    font-size: 36px;
    font-weight: 700;
    color: #102a5c;
    margin-bottom: 30px;
}

.led-badge-box {
    display: flex;
    gap: 40px;
    width: 100%;
    align-items: center;
    background: #f8fafc;
    border-radius: 20px;
    padding: 30px;
    border: 2px solid #e2e8f0;
}

.led-photo {
    width: 220px;
    height: 270px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.led-info-table th {
    font-size: 24px;
    color: #64748b;
    padding: 10px 14px;
    text-align: left;
}

.led-info-table td {
    font-size: 28px;
    color: #0f172a;
    font-weight: 700;
    padding: 10px 14px;
}
