@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* GIAO DIỆN SÁNG (LIGHT) LÀ MẶC ĐỊNH */
:root{
  --bg-black-900: #f2f2fc;
  --bg-black-100: #fdf9ff;
  --bg-black-50: #e8dfec;
  --text-black-900: #302e4d;
  --text-black-700: #504e70;
  --header-top-height: 65px;
  --header-main-height: 60px;
  --header-total-height: calc(var(--header-top-height) + var(--header-main-height));
  --vnpt-blue: #005baa;
  --skin-color: #ec1839;
}

body.dark{
  --bg-black-900:#151515;
  --bg-black-100:#222222;
  --bg-black-50:#393939;
  --text-black-900:#ffffff;
  --text-black-700:#e9e9e9;
}

body{
  line-height:1.5;
  font-size:16px;
  font-family: 'Inter', sans-serif;
  overflow-y: auto; 
  overflow-x: hidden;
  background: var(--bg-black-900);
}

*{margin:0;padding:0;outline:none;text-decoration:none;box-sizing:border-box}
::before,::after{box-sizing:border-box}
ul{list-style:none}

/* HEADER STYLE */
.header { position: relative; top: 0; left: 0; width: 100%; z-index: 100; background: var(--bg-black-100); box-shadow: 0 4px 12px rgba(0,0,0,.04); }
.container { max-width: 1200px; width: 100%; margin: auto; padding: 0 15px; }
.header-top { background: var(--bg-black-900); border-bottom: 1px solid var(--bg-black-50); height: var(--header-top-height); }
.header-top-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.header-right { display: flex; align-items: center; gap: 15px; }
.header-main { height: var(--header-main-height); }
.header-main-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.header .logo { position: static; padding: 0; }
.header .logo a { display: flex; align-items: center; height: 100%; padding: 5px 0; line-height: 0; }
.logo-image { height: auto; width: 120px; max-height: 110px; object-fit: contain; }
.header .logo a span { display: none; }
.header .nav { margin: 0; height: 100%; }
.header .nav-menu { display: flex; height: 100%; margin: 0; padding: 0; gap: 10px; }
.header .nav-menu li { margin: 0; }
.header .nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 0 15px; min-width: 90px; font-size: 14px; font-weight: 600; color: var(--text-black-700); border-radius: 8px; background: none; transition: all 0.2s ease; border-bottom: 4px solid transparent; }
.header .nav-link .nav-icon { font-size: 24px; margin-bottom: 5px; }
.header .nav-link .nav-text { font-size: 13px; font-weight: 500; }
.header .nav-link:hover { color: var(--text-black-900); background: var(--bg-black-50); }
.header .nav-link.active { color: var(--skin-color); background: none; border-bottom-color: var(--skin-color); }
.nav-right .nav-link.login-link { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 0 15px; min-width: 90px; font-size: 14px; font-weight: 600; color: var(--text-black-700); border-radius: 8px; background: none; transition: all 0.2s ease; border-bottom: 4px solid transparent; }
.nav-right .nav-link.login-link:hover { color: var(--text-black-900); background: var(--bg-black-50); }

/* STYLE SWITCHER */
.header .style-switcher { position: static; top: auto; right: auto; border: none; background: none; box-shadow: none; padding: 0; transform: none; z-index: 101; display: flex; align-items: center; gap: 10px; }
.header .style-switcher .s-icon { display: flex; align-items: center; justify-content: center; position: static; box-shadow: none; border: 1px solid var(--bg-black-50); width: 34px; height: 34px; line-height: 34px; font-size: 16px; background: var(--bg-black-100); color: var(--text-black-700); border-radius: 8px; }
.header .style-switcher .s-icon:hover { background: var(--bg-black-50); color: var(--text-black-900); }
.header .style-switcher h4, .header .style-switcher .colors { display: none; }
.header .style-switcher.open { transform: none; box-shadow: 0 10px 30px rgba(0,0,0,.1); padding: 8px; background: var(--bg-black-100); border: 1px solid var(--bg-black-50); border-radius: 10px; position: absolute; top: 100%; right: 15px; display: block; gap: 0; }
.header .style-switcher.open h4, .header .style-switcher.open .colors { display: block; }
.header .style-switcher.open .day-night { position: absolute; top: 10px; right: 10px; border: none; }

.nav-toggler { height: 40px; width: 45px; border: 1px solid var(--bg-black-50); cursor: pointer; border-radius: 5px; background: var(--bg-black-100); display: none; align-items: center; justify-content: center; transition: all .3s ease; }
.nav-toggler span{height:2px;width:18px;background:var(--skin-color);display:inline-block;position:relative}
.nav-toggler.open span{background-color:transparent}
.nav-toggler span::before, .nav-toggler span::after{ content:'';height:2px;width:18px;background:var(--skin-color);position:absolute;left:0 }
.nav-toggler span::before{top:-6px}
.nav-toggler.open span::before{transform:rotate(45deg);top:0}
.nav-toggler span::after{top:6px}
.nav-toggler.open span::after{transform:rotate(-45deg);top:0}

/* MAIN CONTENT */
.main-content { display: block; padding-top: var(--header-total-height); min-height: 100vh; position: relative; }

.section{ background:var(--bg-black-900); min-height: auto; padding: 40px 30px; opacity: 0; position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 1; overflow-y: auto; overflow-x:hidden; transition: opacity .3s ease, transform .3s ease; visibility: hidden; transform: translateY(20px); }
.section.active{ z-index: 2; opacity: 1; visibility: visible; transform: translateY(0); }
.hidden{display:none!important}
.padd-15{padding-left:15px;padding-right:15px}
.section .container{ padding-top:0; padding-bottom:0; position:relative; }
.section-title{flex:0 0 100%;max-width:100%;margin-bottom:60px}
.section-title h2{ font-size:40px;color:var(--text-black-900);font-weight:700;position:relative }
.section-title h2::before{ content:'';position:absolute;width:50px;height:4px;background:var(--skin-color);top:100%;left:0 }
.section-title h2::after{ content:'';position:absolute;width:25px;height:4px;background:var(--skin-color);top:100%;left:0;margin-top:8px }
.row{display:flex;flex-wrap:wrap;margin-left:-15px;margin-right:-15px;position:relative}
.btn{ font-size:15px;font-weight:500;padding:12px 20px;margin-bottom:10px;margin-right:5px; color:#fff;border-radius:40px;display:inline-block;white-space:nowrap;border:none; background:var(--skin-color);transition:all .3s ease }
.btn:hover{transform:scale(1.05)}

/* HOME */
.home .container{ margin-top:0; display: flex; align-items: center; min-height: calc(100vh - var(--header-total-height) - 80px); }
.home .hero-banner { width: 100%; }
.home .brand-intro { align-items: center; }
.home .home-info{ flex: 0 0 60%; max-width: 60%; }
.home .brand-image { flex: 0 0 40%; max-width: 40%; text-align: center; }
.home .brand-image img { max-width: 100%; height: auto; border-radius: 15px; }
.home .home-info h1 { font-size: 44px; font-weight: 700; color: var(--text-black-900); line-height: 1.2; margin-bottom: 20px; }
.home .home-info .brand-description { font-size: 18px; line-height: 1.6; color: var(--text-black-700); margin-bottom: 40px; }

/* SERVICES & ITEMS */
.service-group { margin-bottom: 30px; }
.service-group-title { font-size: 20px; font-weight: 600; color: var(--text-black-900); margin-bottom: 20px; border-bottom: 2px solid var(--bg-black-50); padding-bottom: 8px; }
.service .service-item{margin-bottom:30px;flex:0 0 33.33%;max-width:33.33%}
.service .service-item .service-item-inner{ background-color: transparent; border: none; border-radius:10px;padding:30px 15px;text-align:center; box-shadow: none; transition: all .3s ease; position: relative; overflow: hidden; z-index: 1; border: 1px solid rgba(0,0,0,0.05); }
.service .service-item .service-item-inner:hover{ box-shadow: 0 10px 25px rgba(0, 91, 170, 0.15); transform: translateY(-8px); border-color: transparent; }
.service-item-inner::before { content: ""; position: absolute; inset: 0; border-radius: 10px; padding: 2px; background: linear-gradient(135deg, #005baa, #00d2ff, #ffffff, #005baa); background-size: 300% 300%; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.3s ease; z-index: -1; }
.service-item-inner:hover::before { opacity: 1; animation: borderGlow 3s linear infinite; }
@keyframes borderGlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.service .service-item .service-item-inner .icon{ height:60px;width:60px; border-radius:12px; display:inline-flex; align-items: center; justify-content: center; margin:0 auto 30px; text-align:center; transition:all .3s ease; background: var(--bg-black-50); color: var(--skin-color); font-size: 28px; }
.service .service-item .service-item-inner:hover .icon{ background:var(--skin-color); color: #fff; transform: scale(1.1) rotate(5deg); box-shadow: 0 0 15px rgba(0, 91, 170, 0.4); }
.service .service-item .service-item-inner h4{ font-size:18px;margin-bottom:0;color:var(--text-black-900);font-weight:700;text-transform:capitalize; }
.service .service-item .service-item-inner h4 a { color: inherit; text-decoration: none; transition: 0.3s; }
.service-item-inner:hover h4 a { color: var(--vnpt-blue); }

/* USER MENU & TOOLS DROPDOWN */
.user-menu{ position:relative; z-index:5000; font-size:14px; pointer-events:auto; }
.user-pill{ display:inline-flex; align-items:center; gap:8px; padding: 0 12px; height: 34px; background: var(--bg-black-100); color: var(--text-black-900); border:1px solid var(--bg-black-50); border-radius:999px; cursor:pointer; transition:background .15s ease,border-color .15s ease,box-shadow .15s ease; box-shadow:0 5px 15px rgba(0,0,0,.05); z-index:5001; position: relative; }
.user-pill:hover{ background: var(--bg-black-50); }
.user-dropdown{ position:absolute; right:0; margin-top:8px; min-width:240px; background: var(--bg-black-100); border:1px solid var(--bg-black-50); border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.1); padding:8px; display:none; z-index:5002; }
.user-menu.open .user-dropdown{display:block !important}
.ud-header{padding:8px 10px;border-radius:8px;background: #f8f9fa;}
.ud-name{font-weight:700;color: var(--text-black-900);}
.ud-role{margin-top:2px;font-size:12px;color: var(--text-black-700);}
.ud-divider{height:1px;background: var(--bg-black-50); margin:8px 0}
.ud-item{ display:flex;align-items:center;gap:10px;padding:10px;color: var(--text-black-900); text-decoration:none;border-radius:8px; width: 100%; border: none; background: transparent; cursor: pointer; text-align: left; font-family: inherit; font-size: 14px; }
.ud-item:hover{background: #f1f3f5;}

/* DOT BADGE */
.dot-badge { position: absolute; top: 0; right: 0; width: 10px; height: 10px; background: #e74c3c; border-radius: 50%; border: 2px solid #fff; }
.badge-pill { margin-left: auto; background: #e74c3c; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 10px; font-weight: 700; }

/* TABS & SEARCH (Giữ nguyên) */
.tabs { display: flex; gap: 10px; margin-bottom: 15px; }
.tab { padding: 8px 15px; background: var(--bg-black-50); color: var(--text-black-700); border: none; border-radius: 6px; cursor: pointer; font-weight: 500; transition: all 0.2s ease; }
.tab:hover { background: #dcdfe2; color: var(--text-black-900); }
.tab.active { background: var(--skin-color); color: #fff; box-shadow: 0 4px 10px color-mix(in srgb, var(--skin-color) 30%, transparent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
#form .tab-content a, #form .tab-content a:visited { color: var(--text-black-900) !important; text-decoration: none; }
#form .tab-content a:hover { color: var(--skin-color); text-decoration: underline; }

.service-search{ position: relative; display: inline-flex; align-items: center; gap: 1px; background: var(--bg-black-100); border: 1px solid var(--bg-black-50); border-radius: 14px; padding: 8px 10px; box-shadow: 0 6px 18px rgba(0,0,0,.06); color: var(--text-black-900); margin-bottom: 12px; }
.service-search .icon-only{ width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; }
.service-search input{ flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; outline: none; transition: width .25s ease, opacity .2s ease, margin .2s ease; }
.service-search .clear{ border: 0; background: transparent; color: inherit; opacity: .7; font-size: 20px; cursor: pointer; transition: opacity .15s ease; }
.service-search .clear:hover{ opacity: 1; }
.service-search .count{ margin-left: 6px; font-size: 12px; color: var(--muted, #9ca3af); }
.service-search.collapsed input, .service-search.collapsed .clear, .service-search.collapsed .count{ width: 0; opacity: 0; margin: 0; pointer-events: none; }
.service-search.expanded input{ width: clamp(220px, 30vw, 420px); opacity: 1; }
.service-search.expanded .clear{ pointer-events: auto; }

/* FORM LAYOUT */
#form .form-layout { align-items: stretch; }
#form .form-card-wrapper { margin-bottom: 30px; display: flex; flex: 0 0 50%; max-width: 50%; }
#form .form-card-wrapper-full { margin-bottom: 30px; display: flex; flex: 0 0 100%; max-width: 100%; }
#form .form-card { background-color: var(--bg-black-100); border: 1px solid var(--bg-black-50); border-radius: 10px; padding: 30px 25px; text-align: left; box-shadow: 0 4px 12px rgba(0,0,0,.04); transition: all .3s ease; width: 100%; }
#form .form-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,.08); border-color: var(--skin-color); }
#form .form-card h4 { font-size: 18px; margin-bottom: 10px; color: var(--text-black-900); font-weight: 700; text-transform: capitalize; }
#form .form-card p { font-size: 16px; color: var(--text-black-700); line-height: 1.6; margin-bottom: 20px; }
#form .form-card .icon { height: 60px; width: 60px; border-radius: 12px; display: block; margin: 0 0 20px 0; text-align: center; transition: all .3s ease; background: var(--bg-black-50); }
#form .form-card .icon .fa-solid { font-size: 40px; line-height: 60px; color: var(--skin-color); }
#form .form-card:hover .icon { background: var(--skin-color); }
#form .form-card:hover .icon .fa-solid { color: #fff; }
#form .form-card .icon-header { display: flex; align-items: center; margin-bottom: 10px; gap: 15px; }
#form .form-card .icon-header .icon { margin: 0; flex-shrink: 0; }
#form .form-card .icon-header h4 { margin: 0; }
#form .tabs-container { margin-top: 25px; border-top: 1px solid var(--bg-black-50); padding-top: 20px; }

/* RESPONSIVE */
@media (max-width:1199px){ .container { max-width: 960px; } .form-card-wrapper { flex: 0 0 50%; max-width: 50%; } }
@media (max-width:991px){
  .header-main .nav { position: fixed; top: 65px; left: 0; width: 100%; height: calc(100vh - 65px); background: var(--bg-black-100); border-top: 1px solid var(--bg-black-50); box-shadow: 0 10px 20px rgba(0,0,0,.05); display: none; overflow-y: auto; z-index: 999; padding: 20px; }
  .header-main .nav.open { display: block; }
  .header-main .nav-menu { flex-direction: column; width: 100%; align-items: flex-start; gap: 0; }
  .header-main .nav-link { height: 50px; padding: 0; border-bottom: 1px solid var(--bg-black-50); flex-direction: row; justify-content: flex-start; border-radius: 0; width: 100%; }
  .header-main .nav-link .nav-icon { font-size: 18px; margin-bottom: 0; margin-right: 15px; width: 20px; }
  .header-main .nav-link .nav-text { font-size: 15px; font-weight: 500; }
  .header-top { display: none; }
  .nav-toggler { display: flex; }
  .main-content { padding-top: 60px; }
  .service-item, .form-card-wrapper, .form-card-wrapper-full, .home-info, .brand-image { flex: 0 0 100% !important; max-width: 100% !important; margin-bottom: 30px; }
  .home .brand-intro { flex-direction: column-reverse; text-align: center; }
  .user-pill .user-name { display: none; }
  .user-pill { padding: 0 10px; height: 34px; gap: 6px; }
}

/* Khung Ghi Chú Nhanh */
.sticky-note-box { 
    position: fixed; 
    top: 70px; right: 80px; 
    width: 300px; height: 350px; 
    background: #fff9c4; border: 1px solid #f3e5ab; 
    box-shadow: 0 5px 30px rgba(0,0,0,0.15); 
    border-radius: 10px; 
    display: none; 
    flex-direction: column; 
    overflow: hidden; 
    z-index: 5005; 
}
.sticky-note-box.open { display: flex !important; animation: slideUp 0.3s ease; }
.note-header { background: #fbc02d; padding: 8px 15px; font-weight: bold; color: #333; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.sticky-note-box textarea { flex: 1; width: 100%; border: none; background: transparent; padding: 15px; resize: none; font-family: inherit; font-size: 14px; outline: none; color: #333; }

/* MODAL STYLE */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 6000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.modal-overlay.open { display: flex !important; animation: fadeIn 0.2s ease; }
.modal-box { background: var(--bg-black-100); width: 90%; max-width: 500px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); overflow: hidden; animation: zoomIn 0.3s ease; }
.modal-header { background: var(--vnpt-blue); color: #fff; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { margin: 0; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.modal-close { font-size: 24px; cursor: pointer; opacity: 0.8; }
.modal-close:hover { opacity: 1; }
.modal-body { padding: 20px; max-height: 70vh; overflow-y: auto; }

.announcement-item { border-left: 4px solid var(--vnpt-blue); background: var(--bg-black-50); padding: 10px 15px; margin-bottom: 10px; border-radius: 4px; }
.announcement-item .date { font-size: 12px; font-weight: bold; color: var(--vnpt-blue); display: block; margin-bottom: 4px; }
.announcement-item p { margin: 0; font-size: 14px; color: var(--text-black-900); }

.copy-item { background: var(--bg-black-100); border: 1px solid var(--bg-black-50); padding: 12px; margin-bottom: 10px; border-radius: 8px; cursor: pointer; position: relative; transition: all 0.2s; }
.copy-item:hover { border-color: var(--vnpt-blue); background: #f0f8ff; }
.copy-item strong { display: block; font-size: 14px; margin-bottom: 5px; color: var(--vnpt-blue); }
.copy-item p { margin: 0; font-size: 13px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-item i { position: absolute; top: 12px; right: 12px; color: #999; }

/* STYLE CHO TRANG ADMIN */
.admin-page-container {min-height: 100vh; background: var(--bg-black-900); display: block; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--bg-black-100); box-shadow: 0 4px 12px rgba(0,0,0,.04); border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.admin-table th { background: var(--bg-black-50); color: var(--text-black-900); font-weight: 700; padding: 15px; text-align: left; }
.admin-table td { padding: 12px 15px; border-bottom: 1px solid var(--bg-black-50); color: var(--text-black-700); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: var(--bg-black-50); }
.admin-form-box { background: var(--bg-black-100); padding: 30px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.04); }
.admin-form-box h3 { margin-bottom: 20px; color: var(--text-black-900); font-size: 20px; border-bottom: 1px solid var(--bg-black-50); padding-bottom: 10px; }
.admin-form .form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.admin-form .form-group { flex: 1; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; padding: 10px 15px; border: 1px solid var(--bg-black-50); border-radius: 5px; background: var(--bg-black-900); color: var(--text-black-900); outline: none; transition: 0.3s; }
.admin-form input:focus { border-color: var(--skin-color); }
.btn-edit { background: #f39c12; padding: 6px 12px; font-size: 13px; }
.btn-del { background: #e74c3c; padding: 6px 12px; font-size: 13px; }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


:root{
    --skin-color: #127fe5;
	--skin-color: #9B54B5;
	--skin-color: #37b182;
	--skin-color: #ec1839;
	--skin-color: #f021b2;
    
}