@charset "UTF-8";
/* CSS Document */

html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    /* Gradient fallback */
    background: linear-gradient(120deg, #f8fafd 60%, #f2f2f8 100%);
    /* Thêm ảnh nền, có gradient overlay phía trên, nếu ảnh lỗi sẽ chỉ hiển thị màu */
    background-image:
        
        url('../img/bg_main.jpg');
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
}

header {
    /* fallback màu */
    background: #fff;
    /* ảnh nền phía dưới, overlay phía trên */
    background-image:
      
        url('../img/bg_head.jpg');
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    padding: 18px 0 14px 0;
    box-shadow: 0 2px 16px #0001;
    /* border-bottom: 2px solid #f2f2f2; (nếu muốn thêm đường phân cách dưới) */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    position: relative;
}
.header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 2px 12px #e2426622;
    margin-right: 0;
}
.site-name {
    flex: 1 1 auto;
    font-size: 1.7rem;
    font-weight: 800;
    color: #e24266;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px #faae3630;
    text-align: center;
    margin-left: 0;
}
.header-back {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 120px;
}
.btn-backhome {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(90deg,#CCFFCC 60%,#f6f6e7 100%);
    color: #333399;
    border: none;
    border-radius: 9px;
    padding: 7px 17px 7px 9px;
    font-weight: 700;
    font-size: 1.07em;
    box-shadow: 0 2px 8px #e2426624;
    text-decoration: none;
    transition: background 0.18s, box-shadow 0.18s;
}
.btn-backhome:hover, .btn-backhome:focus {
    background: linear-gradient(90deg,#faae36 40%,#e24266 100%);
    color: #fff;
    box-shadow: 0 4px 16px #e2426624;
}
.btn-backhome svg {
    margin-right: 6px;
    display: inline-block;
}
.btn-backtext {
    display: inline;
    vertical-align: middle;
}
.preview-info {
    text-align: center;
    color: #888;
    font-size: 1.08em;
    padding: 46px 0 44px 0;
    letter-spacing: 0.01em;
    font-style: italic;
    transition: opacity 0.25s;
    opacity: 0.82;
}
.footer {
    background: 
    
        url('../img/bg_footer_1.jpg');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    color: #9966CC;
    text-align: center;
    padding: 18px 8px 15px 8px;
    font-size: 1.08em;
    margin-top: 10px;
    border-top: 1.5px solid #ececf3;
    letter-spacing: 0.01em;
    box-shadow: 0 -2px 18px #e2426614;
    border-radius: 0 0 20px 20px;
    font-weight: 500;
    word-break: break-word;
}
footer span {
    color: #e24266;
    font-weight: 700;
    text-shadow: 0 2px 8px #faae3632;
    /* font-style: italic;*/
}
footer b {
    color: #faae36;
    font-weight: 700;
}
footer span:hover {
    color: #faae36;
    text-decoration: blink wavy #e24266;
    cursor: pointer;
}

main {
    max-width: 1240px;
    margin: 26px auto 34px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 32px #0002;
    padding: 34px 34px 26px 34px;
}
.container-2col {
    display: flex;
    gap: 38px;
}
.col-left {
    width:360px;
    min-width:220px;
    max-width:420px;
    flex-shrink:0;
    border-right: 1.5px solid #f1f1f1;
    padding-right: 26px;
}
.col-right {
    flex:1; min-width:0;
    padding-left: 8px;
}
label {
    font-weight: 600;
    color: #1a2534;
}
input, select, button {
    margin: 7px 0;
    padding: 12px 14px;
    border-radius: 9px;
    border: 1.5px solid #d8d8df;
    font-size: 1em;
    box-sizing: border-box;
    background: #fafbfc;
    transition: border .15s, box-shadow .2s;
    outline: none;
}
input:focus, select:focus {
    border: 1.5px solid #e24266;
    box-shadow: 0 0 0 1.5px #faae36a0;
}
input[type=file] {padding:0;}
.choose-btns {
    display: flex;
    gap: 14px;
    flex-wrap: nowrap;       /* Không xuống dòng */
    margin-bottom: 13px;
    align-items: center;
}
.choose-block {
    display: flex;
    align-items: center;
}
.fake-btn {
    background: linear-gradient(90deg,#9966FF,#FF66FF);
    color:#fff;
    font-weight:700;
    border:none;
    cursor:pointer;
    border-radius:9px;
    transition:background 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 10px #faae3624;
    font-size: 1.05em;
    padding: 12px 23px;
}
.fake-btn:hover, .fake-btn:focus {
    background: linear-gradient(90deg,#d72755,#faae36);
    box-shadow: 0 4px 16px #fa9b6e22;
}
#options > div {margin-bottom:13px;}
.btn-main {
    background: linear-gradient(90deg,#CC3333 60%,#faae36 100%);
    color:white;
    border:none;
    font-weight:700;
    padding:12px 24px;
    border-radius:10px;
    font-size:1.12em;
    cursor:pointer;
    margin-right:7px;
    margin-top:9px;
    transition:background 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 10px #e2426630;
}
.btn-main:disabled {opacity:0.62;}
.btn-main:hover, .btn-main:focus {background:linear-gradient(90deg,#e24266 65%,#faae36 100%);}
.btn-dl {
    background:#41c783;
    color:#fff;
    border:none;
    border-radius:8px;
    font-weight:500;
    cursor:pointer;
    padding:8px 17px;
    transition: background 0.16s, box-shadow 0.17s;
    box-shadow: 0 2px 8px #41c78322;
}
.btn-dl:hover {background:#30ae6c;}
.btn-reset {
    background:#edf0f6;
    color:#e24266;
    border:none;
    border-radius:10px;
    font-weight:700;
    padding:11px 22px;
    margin-left:8px;
    cursor:pointer;
    transition: background 0.15s, color 0.15s;
    box-shadow: 0 1px 6px #e2426622;
}
.btn-reset:hover {background:#e24266; color:#fff;}
.note {
    color:#7c7d87;
    font-size:1em;
    margin-left: 5px;
}
.progress-bar-bg {
    width:100%;
    height:21px;
    background:linear-gradient(90deg,#eee 60%,#f9f9fa 100%);
    border-radius:9px;
    margin:13px 0;
    box-shadow: 0 1px 4px #d6d6d688;
    border: 1.5px solid #eaeaea;
}
.progress-bar-fg {
    background: linear-gradient(90deg,#e24266 80%,#faae36 100%);
    height:21px;
    border-radius:9px 0 0 9px;
    transition:width 0.4s;
}
.desc {
    color:#7c7d87;
    font-size:1.07em;
    margin-bottom:17px;
    margin-top:4px;
}
.thumbs-scroll {
    max-height: 660px;
    overflow-y:auto;
    padding-right:7px;
    box-shadow: 0 1px 6px #e2426616;
    border-radius: 13px;
    background: #f8fafd;
}
.note { font-size: 0.96em; color: #7c7d87; margin-left: 2px;}

#preview-table {
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    margin-bottom:0;
}
#preview-table th, #preview-table td {
    padding:9px 7px;
    text-align:center;
    border-bottom:1.5px solid #ececf2;
    font-size:1em;
    background: transparent;
}
#preview-table th {
    background: #f5f6fa;
    position: sticky;
    top: 0;
    z-index: 1;
    font-weight:800;
    color: #e24266;
    box-shadow: 0 2px 6px #faae3620;
}
#preview-table img {
    max-width:70px;
    max-height:48px;
    border-radius:7px;
    border:1.5px solid #eaeaea;
    box-shadow: 0 1px 4px #e2426614;
}
@media (max-width: 1100px) {
    main {padding: 14px;}
    .container-2col {flex-direction: column;}
    .col-left, .col-right {width:100%; min-width:0; max-width:none;}
    #preview-table th, #preview-table td {font-size:0.97em;}
    .col-left {border-right:none; border-bottom: 1.5px solid #f1f1f1; padding-right:0; padding-bottom: 12px;}
    .col-right {padding-left:0;}
}
@media (max-width: 500px) {
    .choose-btns {
        flex-wrap: wrap;    /* Cho phép xuống dòng trên mobile */
        gap: 10px;
    }
    .choose-block {
        width: 100%;
        justify-content: flex-start;
    }
}
@media (max-width: 700px) {
    main {padding:3px; margin:8px 0;}
    .header-content {flex-direction:column;gap:9px;}
    .site-name {font-size: 1.07rem;}
    #preview-table th,#preview-table td{font-size:0.91em;}
    .btn-main {padding:9px 10px;}
    .btn-reset {padding:8px 14px;}
    .thumbs-scroll {max-height:340px;}
    .col-left {padding-bottom:8px;}
}
@media (max-width: 700px) {
    .header-content {
        flex-direction: row;
        gap: 5px;
        padding: 0 5px;
    }
    .site-name {
        font-size: 1.08rem;
        padding: 0 4px;
        margin: 0;
    }
    .btn-backhome {
        font-size: 1em;
        padding: 7px 10px 7px 7px;
    }
}
footer {
    background:#f4f6fa;
    color:#a2a2aa;
    text-align:center;
    padding:17px 7px 11px 7px;
    font-size:1.04em;
    margin-top:38px;
    border-top: 1.5px solid #f1f1f4;
    letter-spacing:0.01em;
    box-shadow: 0 -2px 12px #faae3632;
}
::-webkit-scrollbar {
    width: 7px;
    background: #f2f2f6;
}
::-webkit-scrollbar-thumb {
    background: #e2426636;
    border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {background: #e2426670;}

