/* assets.css - 外部样式文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
}

:root {
    --container-opacity: 0.75;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: all 0.5s ease;
    position: relative;
    overflow-x: hidden;
}

/* 磨砂效果开关 */
body.blur-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(8px);
    z-index: -1;
    opacity: 0.9;
}

body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.container {
    background: rgba(255, 255, 255, var(--container-opacity, 0.75));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px 35px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s ease-out forwards;
    transition: all 0.3s ease;
}

body.dark-mode .container {
    background: rgba(30, 30, 46, var(--container-opacity, 0.75));
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 背景图库样式 */
.bg-gallery {
    position: absolute;
    top: 15px;
    right: 65px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #667eea;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

body.dark-mode .bg-gallery {
    background: rgba(30, 30, 46, 0.85);
    color: #3498db;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.bg-gallery:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 20px;
    width: 95%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .gallery-panel {
    background: rgba(30, 30, 46, 0.95);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.gallery-panel.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .gallery-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.gallery-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

body.dark-mode .gallery-title {
    color: #f5f5f5;
}

.gallery-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
}

body.dark-mode .gallery-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.gallery-close {
    background: rgba(102, 126, 234, 0.8);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
}

body.dark-mode .gallery-close {
    background: rgba(52, 152, 219, 0.8);
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.3);
}

.gallery-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

body.dark-mode .gallery-close:hover {
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* 磨砂效果开关 - 在背景图库面板顶部 */
.blur-toggle-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .blur-toggle-section {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.blur-toggle-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

body.dark-mode .blur-toggle-label {
    color: #f5f5f5;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #667eea;
}

body.dark-mode input:checked + .toggle-slider {
    background-color: #3498db;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 优化背景选项网格 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .gallery-panel {
        padding: 15px;
        width: 90%;
    }
}

/* 背景选项样式优化 */
.bg-option {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.bg-option:hover {
    transform: scale(1.05);
    border-color: rgba(102, 126, 234, 0.5);
}

.bg-option.active {
    border-color: #667eea;
    box-shadow: 0 0 0 2px #667eea;
}

body.dark-mode .bg-option.active {
    border-color: #3498db;
    box-shadow: 0 0 0 2px #3498db;
}

.bg-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bg-option:hover .bg-preview img {
    transform: scale(1.1);
}

.bg-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.bg-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 2px;
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
}

.upload-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .upload-section {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.upload-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

body.dark-mode .upload-label {
    color: #f5f5f5;
}

.upload-input {
    display: none;
}

.upload-btn {
    display: inline-block;
    background: rgba(102, 126, 234, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    text-align: center;
}

body.dark-mode .upload-btn {
    background: rgba(52, 152, 219, 0.8);
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.9);
}

body.dark-mode .upload-btn:hover {
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    background: rgba(52, 152, 219, 0.9);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 简化UI样式 */
.welcome-icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.1));
}

.icon-wechat { color: #07c160; }
.icon-qq { color: #12b7f5; }
.icon-browser { 
    background: linear-gradient(135deg, #667eea, #764ba2, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .icon-browser {
    background: linear-gradient(135deg, #3498db, #9b59b6, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    transition: color 0.3s ease;
}

body.dark-mode h1 {
    color: #f5f5f5;
}

.app-welcome {
    color: #e74c3c;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

body.dark-mode .app-welcome {
    color: #ff7979;
}

.subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

body.dark-mode .subtitle {
    color: #bdc3c7;
}

.url-box {
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    margin: 12px 0;
    word-break: break-all;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #495057;
    font-family: 'Courier New', monospace;
    position: relative;
    transition: all 0.3s ease;
}

body.dark-mode .url-box {
    background: rgba(45, 55, 72, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.url-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.url-label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.url-label-customer {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

/* 按钮一级层面透明化 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(102, 126, 234, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .btn {
    background: rgba(52, 152, 219, 0.5);
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.7);
}

body.dark-mode .btn:hover {
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    background: rgba(52, 152, 219, 0.7);
}

.btn:active {
    transform: translateY(0);
}

.btn-customer {
    background: rgba(255, 107, 107, 0.5);
    box-shadow: 0 3px 12px rgba(255, 107, 107, 0.3);
}

.btn-customer:hover {
    background: rgba(255, 107, 107, 0.7);
}

body.dark-mode .btn-customer {
    background: rgba(231, 76, 60, 0.5);
    box-shadow: 0 3px 12px rgba(231, 76, 60, 0.3);
}

body.dark-mode .btn-customer:hover {
    background: rgba(231, 76, 60, 0.7);
}

.btn-share {
    background: rgba(78, 205, 196, 0.5);
    box-shadow: 0 3px 12px rgba(78, 205, 196, 0.3);
}

.btn-share:hover {
    background: rgba(78, 205, 196, 0.7);
}

body.dark-mode .btn-share {
    background: rgba(26, 188, 156, 0.5);
    box-shadow: 0 3px 12px rgba(26, 188, 156, 0.3);
}

body.dark-mode .btn-share:hover {
    background: rgba(26, 188, 156, 0.7);
}

.btn-favorite {
    background: rgba(253, 116, 108, 0.5);
    box-shadow: 0 3px 12px rgba(253, 116, 108, 0.3);
}

.btn-favorite:hover {
    background: rgba(253, 116, 108, 0.7);
}

body.dark-mode .btn-favorite {
    background: rgba(230, 126, 34, 0.5);
    box-shadow: 0 3px 12px rgba(230, 126, 34, 0.3);
}

body.dark-mode .btn-favorite:hover {
    background: rgba(230, 126, 34, 0.7);
}

.hidden {
    display: none;
}

.tips {
    background: rgba(255, 249, 230, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
    border-left: 4px solid #f39c12;
    animation: slideIn 0.4s ease-out;
}

body.dark-mode .tips {
    background: rgba(60, 42, 30, 0.8);
    border-left: 4px solid #f39c12;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tips p {
    margin-bottom: 8px;
    color: #856404;
    font-size: 13px;
    line-height: 1.4;
}

body.dark-mode .tips p {
    color: #f1c40f;
}

.customer-notice {
    background: rgba(232, 245, 233, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px;
    margin: 8px 0;
    color: #2e7d32;
    font-size: 12px;
    border-left: 3px solid #4caf50;
}

body.dark-mode .customer-notice {
    background: rgba(26, 47, 26, 0.8);
    color: #81c784;
    border-left: 3px solid #4caf50;
}

.link-section {
    margin: 20px 0;
    animation: slideIn 0.4s ease-out 0.1s both;
}

.section-title {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: left;
    padding-left: 10px;
    border-left: 4px solid #667eea;
}

body.dark-mode .section-title {
    color: #f5f5f5;
    border-left: 4px solid #3498db;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.bg-control {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #667eea;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

body.dark-mode .bg-control {
    background: rgba(30, 30, 46, 0.85);
    color: #3498db;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.bg-control:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 缩小统计面板 */
.stats-panel {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 3;
    opacity: 1;
    min-width: 150px;
    max-width: 160px;
    transition: all 0.3s ease;
    font-size: 0.85em;
}

body.dark-mode .stats-panel {
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .stats-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stats-title {
    font-size: 11px;
    font-weight: 700;
    color: #2c3e50;
}

body.dark-mode .stats-title {
    color: #f5f5f5;
}

.stats-refresh {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

body.dark-mode .stats-refresh {
    color: #3498db;
}

.stats-refresh:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: rotate(90deg);
}

body.dark-mode .stats-refresh:hover {
    background: rgba(52, 152, 219, 0.1);
}

.stats-refresh.loading {
    animation: spin 1s linear infinite;
}

.stats-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0;
    font-size: 11px;
    color: #2c3e50;
}

body.dark-mode .stats-item {
    color: #e0e0e0;
}

.stats-label {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.stats-label i {
    margin-right: 4px;
    width: 12px;
    color: #667eea;
    font-size: 10px;
}

body.dark-mode .stats-label i {
    color: #3498db;
}

.stats-number {
    font-weight: 700;
    color: #e74c3c;
    min-width: 16px;
    text-align: right;
    font-size: 11px;
    transition: all 0.3s ease;
}

body.dark-mode .stats-number {
    color: #ff7979;
}

.stats-detail {
    font-size: 9px;
    color: #7f8c8d;
    margin-top: 2px;
    text-align: right;
}

body.dark-mode .stats-detail {
    color: #bdc3c7;
}

.stats-updating {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.status-indicator {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-left: 3px;
}

.status-online {
    background: #07c160;
    animation: blink 2s infinite;
}

.status-offline {
    background: #e74c3c;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.mobile-favorite-guide {
    background: rgba(227, 242, 253, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
    border-left: 4px solid #2196f3;
    animation: slideIn 0.4s ease-out;
}

body.dark-mode .mobile-favorite-guide {
    background: rgba(30, 42, 58, 0.8);
    border-left: 4px solid #3498db;
}

.mobile-favorite-guide h3 {
    color: #1976d2;
    margin-bottom: 8px;
    font-size: 14px;
}

body.dark-mode .mobile-favorite-guide h3 {
    color: #3498db;
}

.mobile-favorite-guide ol {
    padding-left: 18px;
    color: #2c3e50;
}

body.dark-mode .mobile-favorite-guide ol {
    color: #e0e0e0;
}

.mobile-favorite-guide li {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.copy-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #07c160, #05a050);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    z-index: 1000;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 8px 25px rgba(7, 193, 96, 0.3);
    font-size: 14px;
}

.copy-success.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* 简化按钮组 */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.btn-group .btn {
    flex: 1;
    min-width: 120px;
    max-width: 180px;
}

/* 主要按钮区域 */
.primary-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.primary-buttons .btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 14px;
}

/* 次要按钮区域 */
.secondary-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.secondary-buttons .btn {
    flex: 1;
    min-width: 100px;
    max-width: 140px;
    padding: 10px 15px;
    font-size: 12px;
}

/* 统计面板中的北京时间 */
.stats-time {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 10px;
    color: #7f8c8d;
    text-align: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    padding: 6px;
}

body.dark-mode .stats-time {
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
    background: rgba(52, 152, 219, 0.1);
}

.stats-time .time-label {
    font-weight: 700;
    margin-bottom: 2px;
    color: #e74c3c;
    font-size: 11px;
}

body.dark-mode .stats-time .time-label {
    color: #ff7979;
}

.stats-time .time-value {
    font-family: 'Courier New', monospace;
    color: #2c3e50;
    font-weight: bold;
    font-size: 11px;
}

body.dark-mode .stats-time .time-value {
    color: #f5f5f5;
}

/* 透明度调节滑块 */
.opacity-control {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .opacity-control {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.opacity-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

body.dark-mode .opacity-label {
    color: #f5f5f5;
}

#opacityValue {
    color: #667eea;
    font-weight: 700;
    font-size: 13px;
    margin-left: 5px;
}

body.dark-mode #opacityValue {
    color: #3498db;
}

.opacity-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #667eea, #764ba2);
    outline: none;
    -webkit-appearance: none;
}

body.dark-mode .opacity-slider {
    background: linear-gradient(to right, #3498db, #9b59b6);
}

.opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

body.dark-mode .opacity-slider::-webkit-slider-thumb {
    background: #3498db;
    border: 3px solid #2c3e50;
}

.opacity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.opacity-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

body.dark-mode .opacity-slider::-moz-range-thumb {
    background: #3498db;
    border: 3px solid #2c3e50;
}