:root {
    --light-bg: #f3f4f6;
    --light-text: #1f2937;
    --light-muted: #4b5563;
    --light-card: #ffffff;
    --light-border: #d1d5db;
    --light-input: #f9fafb;
    --dark-bg: #1f2937;
    --dark-text: #ffffff;
    --dark-muted: #9ca3af;
    --dark-card: #374151;
    --dark-border: #4b5563;
    --dark-input: #4b5563;
}

@media (prefers-color-scheme: light) {
    .bg-light-bg { background-color: var(--light-bg); }
    .bg-dark-bg { background-color: var(--light-bg); }
    .text-light-text { color: var(--light-text); }
    .text-dark-text { color: var(--light-text); }
    .text-light-muted { color: var(--light-muted); }
    .text-dark-muted { color: var(--light-muted); }
    .bg-light-card { background-color: var(--light-card); }
    .bg-dark-card { background-color: var(--light-card); }
    .border-light-border { border-color: var(--light-border); }
    .border-dark-border { border-color: var(--light-border); }
    .bg-light-input { background-color: var(--light-input); }
    .bg-dark-input { background-color: var(--light-input); }
}

@media (prefers-color-scheme: dark) {
    .bg-light-bg { background-color: var(--dark-bg); }
    .bg-dark-bg { background-color: var(--dark-bg); }
    .text-light-text { color: var(--dark-text); }
    .text-dark-text { color: var(--dark-text); }
    .text-light-muted { color: var(--dark-muted); }
    .text-dark-muted { color: var(--dark-muted); }
    .bg-light-card { background-color: var(--dark-card); }
    .bg-dark-card { background-color: var(--dark-card); }
    .border-light-border { border-color: var(--dark-border); }
    .border-dark-border { border-color: var(--dark-border); }
    .bg-light-input { background-color: var(--dark-input); }
    .bg-dark-input { background-color: var(--dark-input); }
}

.header-section {
    transition: background-color 0.15s ease-in-out;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    max-height: 70vh; /* Thêm giới hạn chiều cao */
    overflow-y: auto; /* Bật cuộn dọc */
    padding-bottom: 1rem; /* Khoảng cách dưới để tránh cắt nội dung */
}

@media (min-width: 1024px) {
    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

#versionSelect, #cloneSelect, #svSelect {
    margin-bottom: 1rem;
}

.relative {
    position: relative;
}

label {
    position: absolute;
    top: -10px; /* Điều chỉnh vị trí của label theo ý muốn */
    left: 10px; /* Điều chỉnh vị trí của label theo ý muốn */
    background-color: white; /* Màu nền để label nổi bật hơn */
    padding: 0 5px; /* Đệm cho label */
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 50;
    justify-content: center;
    align-items: center;
    transition: opacity 0.15s ease-in-out;
}

.modal-content {
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 1rem;
    transition: transform 0.15s ease-in-out;
}

.screenshot-container {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
}

.screenshot-container img {
    flex-shrink: 0;
    width: 160px;
    height: 320px;
    object-fit: cover;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.screenshot-container img.screenshot-loaded {
    opacity: 1;
    transform: translateY(0);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem; /* Hoặc điều chỉnh theo ý bạn */
}

.pagination button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.pagination button:hover {
    background-color: #e0e0e0;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
}

.pagination button.disabled {
    background-color: #eaeaea;
    color: #888888;
    cursor: not-allowed;
}

.pagination span {
    margin: 0 5px;
    font-weight: bold;
    cursor: default;
}

.app-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease; /* Thêm hiệu ứng cho màu nền */
    background-color: #f9f9f9; /* Màu nền mặc định */
    color: #333; /* Màu chữ mặc định */
}

.app-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    background-color: #e0e0e0; /* Màu nền khi hover */
}

.app-item.clicked {
    transform: scale(0.95); /* Thu nhỏ khi click */
    background-color: #007bff; /* Màu nền khi click */
    color: white; /* Màu chữ khi click */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.7); /* Bỏ đi bóng khi click */
}


.app-icon {
    opacity: 0;
    will-change: transform, opacity;
}

.app-icon.animate__animated {
    opacity: 1;
}

/* Cân chỉnh modal */
.modal-content .flex.items-start {
    align-items: flex-start;
    gap: 1rem;
}

.modal-content .flex-1 {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.custom-link {
    color: blue;
    text-decoration: none;
    font-weight: bold;
}

.custom-link:hover {
    color: red;
    text-decoration: underline;
}

a {
    color: blue; /* Màu chữ */
    text-decoration: none; /* Bỏ gạch chân */
    font-weight: bold; /* Chữ đậm */
}

.bg-green-500 {
    background-color: #48bb78; /* Màu nền */
}

.bg-red-500 {
    background-color: #C33131; /* Màu nền */
}

.bg-blue-500 {
    background-color: #5657FF; /* Màu nền */
}

.text-white {
    color: white; /* Màu chữ */
}

.text-xs {
    font-size: 0.75rem; /* Kích thước chữ */
}

.px-2 {
    padding-left: 0.5rem; /* Padding ngang */
    padding-right: 0.5rem;
}

.py-1 {
    padding-top: 0.25rem; /* Padding dọc */
    padding-bottom: 0.25rem;
}

.rounded-bl-xl {
    border-bottom-left-radius: 0.75rem; /* Bo góc */
}

.rounded-tr-xl {
    border-top-right-radius: 0.75rem; /* Bo góc */
}

.absolute {
    position: absolute; /* Vị trí tuyệt đối */
}

.top-0 {
    top: 0; /* Vị trí trên cùng */
}

.right-0 {
    right: 0; /* Vị trí bên phải */
}
.tab-button {
    /*transition: background-color 0.2s, color 0.2s;*/
    transition: background-color 0.3s ease;
}

.tab-button.active {
    background-color: #3b82f6; /* Màu nền khi tab được chọn */
    color: white;
}

.tab-button-source {
    transition: background-color 0.3s ease; /* Thêm hiệu ứng chuyển đổi cho màu nền */
}

.tab-button-source.active {
    background-color: #3b82f6; /* Màu nền khi tab được chọn */
    border-radius: 10px; /* Tạo hiệu ứng bo tròn cho màu nền */
}

body {
    background-color: whitesmoke;
    font-family: 'Poppins', sans-serif !important;
}
header {
    background-color: #ffffff;
}
footer {
    background-color: #ffffff;
}

.container {
    max-width: 1140px;
}

.btn-default {
    background-color: #1b6ec2;
    color: white;
}

.btn-default:hover {
    background-color: dodgerblue;
    color: whitesmoke;
}

.key-sensi {
    filter: blur(3px);
}

html, body {
  width: 100%;
  height:100%;
  // background-color: #f3f5f5;
  // background-color: #424242;
}
html {
    font-family:sans-serif;
    line-height:1.15;
    -webkit-text-size-adjust:100%;
    -webkit-tap-highlight-color:transparent
}
body {
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-size:1rem;
    font-weight:400;
    line-height:1.5;
    color:#212529;
    text-align:left;
    background-color:#F3F5F5
}

table {
  width: 100%;
  max-width: 100%;
  //height: 300px;
  height: 100%;
  margin: 0 auto;
  // display: block;
  overflow-x: auto;
  border-spacing: 0;
  border-collapse: collapse;
}

tr, th, td {
    // padding:.75rem;
    // vertical-align:top;
    // border-top:1px solid #dee2e6
    white-space: nowrap;
    
}
tr {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
/* Modal Content/Box */
.modal-content2 {
  background-color: #fefefe;
  margin: 10% auto 25% auto; /* 5% from the top, 15% from the bottom and centered */
  border: 1px solid #888;
  width: 96%; /* Could be more or less, depending on screen size */
  overflow-x:hidden;
  overflow-y:auto;
  // height:50%;
}



.close2 {
  position: absolute;
  right: 35px;
  top: 20px;
  font-size: 35px;
  font-weight: bold;
  color: #f1f1f1;
}

hr {
  border: 1px solid #f1f1f1;
  margin-bottom: 25px;
}

.modal2 {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  padding-top: 50px;
}

.close {
  /* Position it in the top right corner outside of the modal */
  position: absolute;
  right: 13px;
  top: 10px;
  color: red;
  font-size: 35px;
  font-weight: bold;
}

/* Close button on hover */
.close:hover,
.close:focus {
  color: red;
  cursor: pointer;
}


/* Add Zoom Animation */
.animate {
  -webkit-animation: animatezoom 0.6s;
  animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
  from {-webkit-transform: scale(0)}
  to {-webkit-transform: scale(1)}
}

@keyframes animatezoom {
  from {transform: scale(0)}
  to {transform: scale(1)}
}

.sair {
	    text-align: center;
	    padding: 10px;
}



@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* CSS */
.button-85 {
  padding: 0.6em 2em;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-85:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-button-85 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

@keyframes glowing-button-85 {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.button-85:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #222;
  left: 0;
  top: 0;
  border-radius: 10px;
}


/* CSS */
.button-54 {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  color: #000;
  cursor: pointer;
  margin-left: auto;
  margin-right: auto;
  border: 3px solid;
  padding: 0.25em 0.5em;
  box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-54:active {
  box-shadow: 0px 0px 0px 0px;
  top: 5px;
  left: 5px;
}


.kaku {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.radius {
    border-radius: 3vw;
}

.radius-2 {
    border-radius: 3vw 3vw 0 0;
}
/*
@media screen and (max-width: 480px) {
  .modal-content {
    margin: 10% auto 25% auto;
    width: 90%;
  }
}
*/

.col-25 {
  -ms-flex: 25%; /* IE10 */
  flex: 25%;
}

.col-50 {
  -ms-flex: 50%; /* IE10 */
  flex: 50%;
}

.col-75 {
  -ms-flex: 75%; /* IE10 */
  flex: 75%;
}

.col-25,
.col-50,
.col-75 {
  padding: 0 16px;
}
.row-1 {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
  margin: 0 -16px;
}

.scrollmenu {
  //background-color: #333;
  overflow: auto;
  white-space: nowrap;
}

.scrollmenu-a {
  display: inline-block;
  //color: white;
  text-align: center;
  padding: 12px;
  text-decoration: none;
}

.scrollmenu-a:hover {
  //background-color: #777;
}

@media (min-width: 960px) {
  .button-54 {
    padding: 0.25em 0.75em;
  }
  .modal-content { 
    width: 80%;
    
  }
  .row-1 {
    flex-direction: column-reverse;
  }
  .content-area {
    width: 90%;
    align-items:center;
    justify-content:center;
    left:50px!important;
  }
}

@media (max-width:767px){

}

@media screen and (max-width:500px){
    
}

@media screen and (min-width:897px){
    .content-area {
    width: 90%;
    align-items:center;
    justify-content:center;
    left:50px!important;
  }
}

.app-container {
    display:grid;
    grid-template-rows:64px;
    grid-template-columns:64px auto 72px;
    gap:.5rem
}
.justify-content-center {
    -ms-flex-pack:center!important;
    justify-content:center!important
}
.row {
    display:-ms-flexbox;
    display:flex;
    -ms-flex-wrap:wrap;
    flex-wrap:wrap;
    margin-right:-15px;
    margin-left:-15px
}
.svg-4 {
    width:1.5rem;
    height:1.5rem
}
.svg-5 {
    width:1.25rem;
    height:1.25rem
}
.svg-6 {
    width:1rem;
    height:1rem
}
.svg-primary {
    fill:#008080
}
.svg-blue {
    fill:#007bff
}
.svg-muted {
    fill:#999
}
h4,h5,h6 {
    margin:0;
    font-weight:700;
    font-family:system-ui,-apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color:#008080
}
a {
    -webkit-transition:all 0.3s ease 0s;
    -moz-transition:all 0.3s ease 0s;
    transition:all 0.3s ease 0s;
    color:#008080;
    text-decoration:none
}
.text-muted {
    color:#6c757d!important
}
header svg {
    width:20px;
    height:20px;
    fill:#008080
    opacity:.8
}

.btn-primary svg,.btn-primary:not(:disabled):not(.disabled):active:focus svg {
    fill:#fff
}
.btn-secondary svg,.btn-secondary:not(:disabled):not(.disabled):active:focus svg {
    fill:#fff
}
.btn-link2 {
  background-color: transparent;
  border: 0px solid #555555;
  font-weight: 400;
  color: #007bff;
  text-decoration: underline;
}
.btn-link3 {
  background-color: transparent;
  border: 0px solid #555555;
  font-weight: 400;
  color: #007bff;
  text-decoration: none;
}

.btn-link2:hover {
  color: red;
  text-decoration: underline;
}

.btn-link2:focus, .btn-link2.focus {
  text-decoration: underline;
}

.btn-link2:disabled, .btn-link2.disabled {
  color: #6c757d;
  pointer-events: none;
}

#myInput {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 512 512"><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>');
  background-position: 10px 12px;
  background-repeat: no-repeat;
  width: 100%;
  font-size: 16px;
  padding: 12px 20px 12px 40px;
  border: 2px solid #ddd;
  margin-bottom: 12px;
}
.fotCd {
    display:inline-flex
}
.fotCd .creator {
    opacity:0
}
span#file-status, label.custom-file-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-file-upload {
    position: relative;
    cursor: pointer;
    border: 2px dashed #ff6666;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 80px;
}

.custom-file-upload:hover {
    border-color: #ff3333;
    background-color: rgba(255, 51, 51, 0.05);
}

.custom-file-upload.dragover {
    border-color: #ff3333;
    background-color: rgba(255, 51, 51, 0.1);
}

.custom-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-list {
    margin-top: 0.5rem;
    max-height: 100px;
    overflow-y: auto;
}

.file-item {
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.popup-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
@keyframes slideIn {
    from { opacity: 0; transform: translate(-50%, -70%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.button-hover {
    transition: all 0.3s ease;
}
.button-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 77, 77, 0.3);
}

.form-slide {
    animation: formFade 0.6s ease-out;
}
@keyframes formFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

input:focus, select:focus {
    outline: none;
    border-color: #ff6666;
    box-shadow: 0 0 8px rgba(255, 102, 102, 0.5);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}
.animate-bounce-custom {
    animation: bounce 1.5s infinite;
}

body.modal-open {
    overflow: hidden;
}

body.modal-open .container,
body.modal-open nav,
body.modal-open footer {
    filter: blur(4px);
    transition: filter 0.3s ease;
}

#turnstile-widget {
    display: inline-block;
}

.turnstile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem; /* mt-4 trong Tailwind */
}

