/* base.css */
body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header {
    width: 100%;
    height: 6%;
    background-color: #18181a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3f4044;
}

.header .logo {
    max-width: 180px
}

.header .login {
    padding: 8px 16px;
    background-color: #00FFFF;
    color: #2B2B2B;
    border: none;
    border-radius: 4px;
    margin-right: 20px;
    font-size: 16px;
    font-weight: bold;
}

.container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 94%;
}

.main {
    width: 82%;
    height: 100%;
}

/* zoom */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    text-align: center;
}

.zoom-overlay img {
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
}

/* Loading */
.load-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

.load-overlay .load-text {
    position: absolute;
    top: 30%;
    left: 45%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.load-overlay .cancel-button {
    position: absolute;
    top: 70%;
    left: 45%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    padding: 0;
    background-color: #F2F2F2;
    border: none;
    color: #3B3B3B;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
}

.load-overlay .cancel-button:hover {
    background-color: #DADADA;
}

.load-overlay #progress-bar {
    position: absolute;
    top: 40%;
    left: 30%;
    width: 30%;
    height: 10px;
    border-radius: 10px;
    background-color: #f2f2f2;
    overflow: hidden;
}

.load-overlay #progress-bar::-webkit-progress-value {
    background-color: #00ffff;
}

.load-overlay #progress-bar::-moz-progress-bar {
    background-color: #00ffff;
}

/* sidebar */
.sidebar {
    width: 18%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #18181a;
    font-weight: 600;
    border-right: 1px solid #3f4044;
}

.sidebar ul li {
    width: 100%;
    font-size: 16px;
    font-family: Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
}

.sidebar ul li img {
    width: 26px;
    margin-left: 20px;
}

.sidebar ul li p {
    margin-left: 10px;
    color: #b3b7b9;
    transition: color 0.3s;
}

.sidebar ul li a {
    width: 100%;
    display: flex;
    transition: background-color 0.3s;
    text-align: left;
    padding: 10px 0;
}

.sidebar ul li a:hover {
    background-color: #1f2424;
    color: white;
}

.sidebar ul li a.active {
    background-color: #1f2424;
    color: white;
}

/* 高亮表示被选中的项目 */
.sidebar ul li a.active p,
.sidebar ul li a:hover p {
    color: #ffffff;
}

/* 增加过渡效果 */
.sidebar ul li a.active img,
.sidebar ul li a:hover img {
    filter: brightness(1.5);
    transition: filter 0.3s;
}

/* work area */
.work-area {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
}

.work-area .divider {
    border-top: 1px solid #3f4044;
    margin-top: 24px;
}

.work-center {
    width: 70%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    background-color: #222222;
    color: #999;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    align-content: flex-start;
    padding: 20px;
}

/* sidebar */
.work-sidebar {
    width: 30%;
    height: 100%;
    background-color:#18181a;
    box-sizing: border-box;
    color: #fff;
    border-left: 1px solid #3f4044;
    overflow: auto;
    position: relative;
    padding-bottom: 60px
}

.work-sidebar .uk-form-label {
    color: #cbcfd5;
    font-weight: 600;
    font-size: 16px;
}

.work-sidebar .uk-select,
.work-sidebar .uk-input {
    width: 100%;
    padding: 5px;
    border-radius: 4px;
    border: none;
    background-color: #272729;
    color: #a1a4a9;
}

.work-sidebar .uk-select:focus,
.work-sidebar .uk-input:focus {
    background-color: #272729;
    color: #a1a4a9;
    outline: none;
    box-shadow: 0 0 5px #00ffff;
}

.work-sidebar .uk-button {
    width: 100%;
    height: 48px;
    line-height: 48px;
    border-radius: 4px;
    background-color: #33CCCC;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    display: flex;
}

.work-sidebar .uk-button img{
    width: 20px;
    margin-right: 10px;
}

.work-sidebar .uk-button:hover {
    background-color: #00ffff;
    color: #2B2B2B
}

.work-sidebar .slider-label {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-right: 6px;
    margin-top:10px
}

.work-sidebar .slider-img {
    width:38px
}

.work-sidebar .uk-textarea {
    font-size: 14px;
    border-radius: 4px;
    background-color: #272729;
    border-color: #3f4044;
    resize: none;
    color: #f4f4f4;
}

.work-sidebar .uk-textarea:focus {
    border-radius: 4px;
    background-color: #272729;
    border-color: #3f4044;
    color: #f4f4f4 !important;
    outline: none;
    box-shadow: 0 0 5px #00ffff;
}

/* generate button */
.work-sidebar .gen-btn-area {
    width: 100%;
    height: 100px;
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #18181a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.work-sidebar .gen-btn-area button{
    width:92%
}

.uk-margin {
    padding: 0 20px
}

.image-count-part {
    display: flex;
    flex-direction: row
}

.image-count-slider {
    width: 100%;
}

.uk-form-controls {
    margin-top: 10px;
    align-items: center;
}

.uk-margin .my-radio label {
    margin-right:10px;
}

.uk-margin .my-radio .uk-radio:checked {
    background-color: #33CCCC;
}
