.sc-container {
    width: 340px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 12px;
    user-select: none;
    -webkit-user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.sc-img-panel {
    position: relative;
    width: 316px;
    height: 167px;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
}

.sc-bg-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.sc-slice-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 46px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    cursor: grab;
}

.sc-refresh-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 20;
}

.sc-refresh-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(180deg);
}

.sc-track {
    position: relative;
    width: 316px;
    height: 40px;
    margin-top: 12px;
    background: #f4f6f9;
    border: 1px solid #dcdfe6;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.sc-track-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #d4edda;
    border-radius: 20px 0 0 20px;
    transition: background 0.2s;
}

.sc-track-tip {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #8c939d;
    pointer-events: none;
    z-index: 5;
    padding-left: 30px;
    transition: opacity 0.2s;
}

.sc-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #c0c4cc;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s, border-color 0.2s;
}

.sc-handle:active {
    cursor: grabbing;
    background: #ecf5ff;
    border-color: #409eff;
}

.sc-handle-icon {
    font-size: 18px;
    font-weight: bold;
    color: #606266;
    line-height: 1;
}

/* Success State */
.sc-container.sc-success .sc-track-fill {
    background: #52c41a !important;
}

.sc-container.sc-success .sc-handle {
    background: #52c41a !important;
    border-color: #52c41a !important;
    color: #ffffff !important;
}

.sc-container.sc-success .sc-handle-icon {
    color: #ffffff !important;
}

/* Error State */
.sc-container.sc-fail .sc-track-fill {
    background: #ff4d4f !important;
}

.sc-container.sc-fail .sc-handle {
    background: #ff4d4f !important;
    border-color: #ff4d4f !important;
}

.sc-container.sc-fail .sc-handle-icon {
    color: #ffffff !important;
}

.sc-container.sc-shake {
    animation: scShake 0.4s ease-in-out;
}

@keyframes scShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.sc-msg {
    margin-top: 8px;
    font-size: 12px;
    text-align: center;
    min-height: 18px;
    font-weight: 500;
}
.sc-msg.success { color: #52c41a; }
.sc-msg.fail { color: #ff4d4f; }

/* Moove Theme Loginpanel Layout Fix */
.loginpanel {
    overflow: hidden !important;
}

.loginpanel .card-block .form {
    height: auto !important;
    max-height: none !important;
    padding-bottom: 25px !important;
}

.loginpanel .card-block .instructions {
    min-height: auto !important;
}

.loginpanel .card-block .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

#loginpage-slidercaptcha,
#frontpage-slidercaptcha {
    margin: 15px auto;
}
