@import url('http://fonts.googleapis.com/css?family=Roboto');

html, body {
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

.custom-button {
    color: #000;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid #333;
    margin-top: 30px;
}

.custom-button:hover {
    background-color: #d79f1a;
    color: #fff;
}

header {
    background-color: #131921;
    display: flex;
    justify-content: space-between;
    color: #fff;
}

header ul {
    padding: 15px;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: end;
}

header .logo {
    display: flex;
    align-items: center;
    margin-left: 40px;
}

header .logo img {
    max-height: 32px;
    object-fit: cover;
    overflow: hidden;
}

header ul li a {
    padding: 10px;
    color: #fff;
    text-decoration: none;
    transition: .2s;
    margin-left: 40px;
}

header ul li a img {
    margin-right: 15px;
}

header ul li a:hover {
    color: #FBB03B;
}

#wp-vuejs3-app {
    display: flex;
    position: relative;
}

.sidebar {
    background-color: #1e1f26; /* Màu nền của menu chính */
    color: #fff;
    width: max-content;
    display: flex;
    flex-direction: row;
    height: 100%;
    position: relative; /* Để sidebar-content có thể định vị tuyệt đối */
}

/* Main menu styles */
.sidebar-main-menu {
    width: 80px;
    background-color: #1e1f26;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    border-right: 1px solid #363742;
}

.sidebar-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 10px;
}

.sidebar-menu-item:hover {
    background-color: #2c2d35;
}

.sidebar-menu-item.active {
    background-color: #FBB03B;
}

.sidebar-menu-item.active .menu-label {
    color: #1e1f26;
}

.menu-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #fff;
}

.sidebar-menu-item.active .menu-icon {
    color: #1e1f26;
}

.menu-label {
    font-size: 12px;
    text-align: center;
}

/* Content area styles */
.sidebar-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 80px; /* Chiều rộng của sidebar-main-menu */
    right: 0;
    background-color: #262730;
    padding: 15px;
    overflow-y: auto;
    z-index: 1;
    width: max-content;
    min-width: 350px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.sidebar-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sidebar-content-section {
    width: 100%;
    position: relative;
    height: 100%;
}

.close-sidebar-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(30, 31, 38, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 11;
    transition: all 0.2s ease;
    font-size: 16px;
}

.close-sidebar-btn:hover {
    background-color: #FBB03B;
}

.sidebar-content-section h3 {
    color: #FBB03B;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 1px solid #363742;
    padding-bottom: 10px;
    padding-right: 40px; /* Để tránh chồng lên nút đóng */
}

/* Element tab styles */
.sidebar .list-element ul {
    display: flex;
    justify-content: flex-start;
    list-style: none;
    padding: 0 0 10px;
    margin: 0;
    border-bottom: 1px solid #363742;
    position: relative;
    z-index: 10; /* Đảm bảo hiển thị trên các phần khác */
    background-color: #262730;
}

.sidebar .list-element ul li a {
    color: #919396;
    text-decoration: none;
    padding: 5px 10px;
    display: block;
    transition: .3s;
}

.sidebar .list-element ul li a:hover, .sidebar .list-element ul li a.active {
    color: #FFFFFF;
}

.sidebar .list-item {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
}

.sidebar .list-item a {
    color: #FFFFFF;
    text-decoration: none;
}

.sidebar .item-title {
    color: #FBB03B;
}

.sidebar .backgrounds-list-container {
    position: relative;
    margin: 10px 0;
    overflow: hidden;
    width: 100%;
    /* Giới hạn chiều rộng để hiển thị đúng 4 item */
    max-width: 320px; /* 80px * 4 = 320px */
    margin-left: auto;
    margin-right: auto;
}

.sidebar .backgrounds-list {
    display: flex;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0;
}

.sidebar .backgrounds-list .backgrounds-item {
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar .backgrounds-list .backgrounds-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sidebar .backgrounds-list .transparent-bg {
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%),
                      linear-gradient(-45deg, #ccc 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #ccc 75%),
                      linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar .backgrounds-list .transparent-bg i {
    color: #f44336;
    font-size: 24px;
    position: absolute;
}

/* View All Solid Colors */
.sidebar .colors-view-container,
.sidebar .gradients-view-container,
.sidebar .patterns-view-container,
.sidebar .photos-view-container,
.sidebar .images-view-container {
    position: absolute;
    top: 50px; /* Để không che phần list-element */
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1e1f26;
    z-index: 5; /* Giảm z-index để không che phần list-element */
    overflow: hidden;
    height: calc(100% - 50px);
}

.sidebar .all-colors-view,
.sidebar .all-gradients-view,
.sidebar .all-patterns-view,
.sidebar .all-photos-view,
.sidebar .all-images-view {
    padding: 15px 0;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar .breadcrumbs {
    margin: 0 15px 15px;
    font-size: 14px;
    color: #919396;
}

.sidebar .breadcrumbs a {
    color: #FBB03B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar .breadcrumbs a:hover {
    color: #e9a22f;
}

.sidebar .color-categories,
.sidebar .gradient-search,
.sidebar .image-search {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
}

.sidebar .color-category-select,
.sidebar .search-input {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #363742;
    background-color: #32333d;
    color: #fff;
    font-size: 14px;
}

.sidebar .search-input-container {
    position: relative;
    width: 100%;
}

.sidebar .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #919396;
}

.sidebar .search-input {
    padding-left: 30px;
    width: 100%;
    box-sizing: border-box;
}

.sidebar .gradient-tags {
    margin: 0 15px 15px;
}

.sidebar .tags-label {
    font-size: 14px;
    color: #919396;
    margin-bottom: 8px;
}

.sidebar .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar .gradient-tag,
.sidebar .image-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: transparent;
    border: 1px solid #5C5C5C;
    border-radius: 7px;
    font-size: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar .gradient-tag:hover,
.sidebar .image-tag:hover {
    background-color: rgba(92, 92, 92, 0.2);
}

.sidebar .gradient-tag.active,
.sidebar .image-tag.active {
    background-color: #FBB03B;
    color: #1e1f26;
    border-color: #FBB03B;
}

.sidebar .color-grid,
.sidebar .pattern-grid,
.sidebar .image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 15px 20px;
    padding: 5px;
}

.sidebar .photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 10px 20px;
    padding: 5px;
}

/* Gradient grid với 3 item trên mỗi dòng */
.sidebar .gradient-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 15px 20px;
    position: relative;
    z-index: 5;
}

.sidebar .pattern-grid-item,
.sidebar .photo-grid-item,
.sidebar .image-grid-item {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease, border 0.2s ease;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    position: relative;
}

.sidebar .pattern-grid-item.active,
.sidebar .image-grid-item.active {
    border: 2px solid #FBB03B;
    transform: scale(1.05);
}

.sidebar .pattern-grid-item:hover,
.sidebar .photo-grid-item:hover,
.sidebar .image-grid-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}



.sidebar .pattern-grid-item img,
.sidebar .photo-grid-item img,
.sidebar .image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar .color-grid-item {
    aspect-ratio: 1/1;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    border: 1px solid #363742;
}

/* Gradient grid item */
.sidebar .gradient-grid-item {
    aspect-ratio: 1/1;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    border: 1px solid #363742;
}

.sidebar .gradient-grid-item:hover {
    transform: scale(1.05);
}

.sidebar .gradient-grid-item.active {
    border: 1px solid #FBB03B;
}

.sidebar .color-grid-item:hover {
    border-color: #666;
}

.sidebar .color-grid-item.active {
    border: 1px solid #FBB03B;
}

.sidebar .color-editor {
    background-color: #32333d;
    border-radius: 6px;
    padding: 15px;
    margin: 0 15px 15px;
}

/* Bỏ padding và margin cho color-editor trong gradient */
.sidebar .gradient-color-editor {
    padding: 0;
    margin: 0;
}

/* Styles for gradient location and opacity sliders */
.sidebar .gradient-location-container,
.sidebar .gradient-opacity-container {
    margin-top: 15px;
}

.sidebar .gradient-location-container label,
.sidebar .gradient-opacity-container label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 14px;
}

.sidebar .gradient-location-slider,
.sidebar .gradient-opacity-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #1e1f26;
    border-radius: 3px;
    outline: none;
}

.sidebar .gradient-location-slider::-webkit-slider-thumb,
.sidebar .gradient-opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FBB03B;
    cursor: pointer;
}

.sidebar .gradient-location-slider::-moz-range-thumb,
.sidebar .gradient-opacity-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FBB03B;
    cursor: pointer;
    border: none;
}

/* Remove Color button */
.sidebar .remove-color-container {
    margin-top: 15px;
}

.sidebar .remove-color-btn {
    background-color: #32333d;
    color: #f44336;
    border: 1px solid #f44336;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sidebar .remove-color-btn i {
    margin-right: 5px;
    font-size: 12px;
}

.sidebar .remove-color-btn:hover {
    background-color: #f44336;
    color: #fff;
}

.sidebar .remove-color-btn:disabled {
    background-color: #32333d;
    color: #666;
    border-color: #666;
    cursor: not-allowed;
}

/* Pattern Editor Styles */
.sidebar .pattern-editor,
.sidebar .image-editor {
    background-color: #32333d;
    border-radius: 6px;
    padding: 15px;
    margin: 15px;
}

.sidebar .pattern-editor-header,
.sidebar .image-editor-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #363742;
    padding-bottom: 10px;
}

.sidebar .pattern-editor-header h4,
.sidebar .image-editor-header h4 {
    margin: 0;
    color: #FBB03B;
    font-size: 16px;
}

.sidebar .close-editor-btn {
    background-color: transparent;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sidebar .close-editor-btn:hover {
    color: #FBB03B;
}

.sidebar .pattern-preview,
.sidebar .image-preview {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1e1f26;
}

.sidebar .pattern-preview img,
.sidebar .image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sidebar .pattern-properties,
.sidebar .image-properties {
    margin-bottom: 15px;
}

.sidebar .pattern-properties h5,
.sidebar .image-properties h5 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 14px;
}

.sidebar .property-group {
    margin-bottom: 10px;
}

.sidebar .property-group label {
    display: block;
    margin-bottom: 5px;
    color: #919396;
    font-size: 12px;
}

.sidebar .property-control {
    display: flex;
    align-items: center;
}

.sidebar .property-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: #1e1f26;
    border-radius: 3px;
    outline: none;
    margin-right: 10px;
}

.sidebar .property-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FBB03B;
    cursor: pointer;
}

.sidebar .property-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FBB03B;
    cursor: pointer;
    border: none;
}

.sidebar .property-input {
    width: 50px;
    padding: 4px;
    background-color: #1e1f26;
    border: 1px solid #363742;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    text-align: center;
}

.sidebar .pattern-opacity,
.sidebar .pattern-rotation,
.sidebar .pattern-scale,
.sidebar .image-opacity,
.sidebar .image-rotation,
.sidebar .image-scale {
    margin-bottom: 15px;
}

.sidebar .pattern-opacity label,
.sidebar .pattern-rotation label,
.sidebar .pattern-scale label,
.sidebar .image-opacity label,
.sidebar .image-rotation label,
.sidebar .image-scale label {
    display: block;
    margin-bottom: 5px;
    color: #919396;
    font-size: 12px;
}

.sidebar .opacity-slider,
.sidebar .rotation-slider,
.sidebar .scale-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #1e1f26;
    border-radius: 3px;
    outline: none;
}

.sidebar .opacity-slider::-webkit-slider-thumb,
.sidebar .rotation-slider::-webkit-slider-thumb,
.sidebar .scale-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FBB03B;
    cursor: pointer;
}

.sidebar .opacity-slider::-moz-range-thumb,
.sidebar .rotation-slider::-moz-range-thumb,
.sidebar .scale-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FBB03B;
    cursor: pointer;
    border: none;
}

/* Pattern Repeat Toggle */
.sidebar .pattern-repeat,
.sidebar .image-repeat,
.sidebar .aspect-ratio-toggle {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #363742;
}

.sidebar .repeat-label,
.sidebar .aspect-ratio-label {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.sidebar .repeat-checkbox,
.sidebar .aspect-ratio-checkbox {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Highlight active property controls */
.sidebar .property-input:focus,
.sidebar .property-slider:focus {
    outline: 1px solid #FBB03B;
}

/* Improve property group spacing */
.sidebar .property-group {
    margin-bottom: 15px;
}

/* Editor Actions */
.sidebar .editor-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.sidebar .apply-btn,
.sidebar .close-btn {
    background-color: #FBB03B;
    color: #1e1f26;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sidebar .apply-btn:hover,
.sidebar .close-btn:hover {
    background-color: #e9a22f;
}

/* Make property labels more visible */
.sidebar .property-group label {
    color: #FBB03B;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Gradient opacity slider background - default style, will be overridden by inline style */
.sidebar .gradient-opacity-slider {
    background: linear-gradient(to right, rgba(30, 31, 38, 1), rgba(251, 176, 59, 1));
}

/* Load more button */
.sidebar .load-more-container {
    display: flex;
    justify-content: center;
    margin: 0 15px 20px;
}

.sidebar .load-more-btn {
    background-color: #32333d;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.sidebar .load-more-btn:hover {
    background-color: #3e3f4a;
}

.sidebar .load-more-btn:disabled {
    background-color: #2a2b33;
    color: #666;
    cursor: not-allowed;
}

.sidebar .color-spectrum {
    width: 100%;
    height: 40px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #363742;
    background: linear-gradient(to right,
        #FF0000, #FF7F00, #FFFF00, #00FF00,
        #00FFFF, #0000FF, #8B00FF, #FF0000);
    position: relative;
    cursor: pointer;
}

.sidebar .color-spectrum-pointer {
    position: absolute;
    top: -5px;
    width: 10px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #363742;
    border-radius: 2px;
    transform: translateX(-50%);
    pointer-events: none;
}

.sidebar .color-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar .color-picker-container,
.sidebar .opacity-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar .color-picker-container label,
.sidebar .opacity-container label {
    color: #fff;
    font-size: 14px;
}

.sidebar .color-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.sidebar .color-input {
    flex: 1;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #363742;
    border-radius: 4px;
    background-color: #32333d;
    color: #fff;
    font-size: 14px;
}

.sidebar .color-preview-small {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #363742;
    flex-shrink: 0;
}

.sidebar .color-picker-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FBB03B;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar .color-picker-icon i {
    color: #1e1f26;
    font-size: 14px;
}

.sidebar .color-picker-hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.sidebar .opacity-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
    border-radius: 3px;
    outline: none;
}

.sidebar .opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FBB03B;
    cursor: pointer;
}

.sidebar .opacity-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FBB03B;
    cursor: pointer;
    border: none;
}

.sidebar .apply-color-btn {
    background-color: #FBB03B;
    color: #1e1f26;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.sidebar .apply-color-btn:hover {
    background-color: #e9a22f;
}

/* Gradient Editor Styles */
.sidebar .gradient-editor {
    background-color: #32333d;
    border-radius: 6px;
    padding: 15px;
    margin: 0 15px 15px;
    position: relative;
    z-index: 10;
}

.sidebar .gradient-editor-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.sidebar .back-to-gradients {
    background-color: transparent;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
    position: absolute;
    top: 10px;
    right: 10px;
}

.sidebar .back-to-gradients:hover {
    color: #FBB03B;
}

.sidebar .back-to-gradients i {
    margin-right: 5px;
}

.sidebar .gradient-preview {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 4px;
    border: 1px solid #363742;
    margin-bottom: 15px;
}

.sidebar .gradient-rotation {
    margin-bottom: 15px;
}

.sidebar .rotation-label {
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
}

.sidebar .rotation-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.sidebar .rotation-btn {
    background-color: #363742;
    color: #fff;
    border: none;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sidebar .rotation-btn:hover {
    background-color: #4a4b59;
}

.sidebar .rotation-btn.active {
    background-color: #FBB03B;
    color: #1e1f26;
}

.sidebar .rotation-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #363742;
    border-radius: 3px;
    outline: none;
    margin-bottom: 10px;
}

.sidebar .rotation-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FBB03B;
    cursor: pointer;
}

.sidebar .rotation-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FBB03B;
    cursor: pointer;
    border: none;
}

.sidebar .gradient-colors {
    margin-bottom: 15px;
}

.sidebar .gradient-colors-title {
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
}

.sidebar .gradient-color-stops {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sidebar .gradient-color-stop {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #363742;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.sidebar .gradient-color-stop:hover {
    transform: scale(1.05);
}

.sidebar .gradient-color-stop.active {
    border: 1px solid #FBB03B;
}

.sidebar .gradient-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.sidebar .cancel-gradient-btn {
    background-color: #363742;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sidebar .cancel-gradient-btn:hover {
    background-color: #4a4b59;
}

.sidebar .slide-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
}

.sidebar .slide-button {
    background-color: rgba(30, 31, 38, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
    transition: all 0.2s ease;
    font-size: 12px;
}

.sidebar .slide-button:hover {
    background-color: #FBB03B;
}

.sidebar .slide-prev {
    left: 0;
    margin-left: -5px;
}

.sidebar .slide-next {
    right: 0;
    margin-right: -5px;
}

.sidebar .slide-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.sidebar .backgrounds-list img {
    width: 70px;
    height: 70px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    object-fit: cover;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar .backgrounds-list img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sidebar .image-list {
    padding: 10px;
}

/* Text tools styles */
.add-text-btn {
    background-color: #FBB03B;
    color: #1e1f26;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.add-text-btn:hover {
    background-color: #e9a22f;
}

.text-presets {
    margin-top: 20px;
}

.text-presets h4 {
    color: #fff;
    margin-bottom: 10px;
}

.preset-item {
    background-color: #32333d;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-item:hover {
    background-color: #3e3f4a;
}

/* Photo tags styling */
.sidebar .photo-tags {
    margin: 10px 10px 15px;
}

.sidebar .photo-tags .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.sidebar .photo-search {
    margin: 10px 10px;
}

.sidebar .search-input-container {
    position: relative;
    margin-bottom: 15px;
}

.sidebar .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.sidebar .search-input {
    width: 100%;
    padding: 8px 10px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.sidebar .search-input:focus {
    outline: none;
    border-color: #FBB03B;
    box-shadow: 0 0 0 2px rgba(251, 176, 59, 0.2);
}

.sidebar .load-more-container {
    text-align: center;
    margin: 15px 0;
}

.sidebar .load-more-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar .load-more-btn:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
}

/* Upload section styles */
.upload-dropzone {
    border: 2px dashed #4a4b57;
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.upload-dropzone:hover {
    border-color: #FBB03B;
}

.upload-dropzone p {
    margin-bottom: 15px;
    color: #919396;
}

.upload-dropzone button {
    background-color: #FBB03B;
    color: #1e1f26;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-dropzone button:hover {
    background-color: #e9a22f;
}

.uploaded-files h4 {
    color: #fff;
    margin-bottom: 10px;
}

.file-item {
    display: inline-block;
    margin: 5px;
}

/* Product and Template sections */
.product-options, .template-list {
    background-color: #32333d;
    padding: 15px;
    border-radius: 6px;
}

.product-options p, .template-list p {
    color: #919396;
    margin: 0;
}

.editor-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #E3E6E6;
    overflow: hidden;
}

.canvas-area {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
}

.canvas-area .canvas-area-top-action {
    display: flex;
    justify-content: space-between;
}

.canvas-area .canvas-area-top-action .page-title {
    font-weight: bold;
}

.canvas-area .canvas-area-top-action a {
    text-decoration: none;
    font-size: 12px;
    margin-left: 30px;
    margin-bottom: 10px;
    display: inline-block;
}

.header-canvas {
    background-color: #ffffff;
    padding: 15px;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e0e0e0;
    position: relative; /* Để các phần tử con có thể định vị tuyệt đối */
}

.header-canvas .actions-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.header-canvas .scroll-container {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
}

/* Ẩn thanh cuộn cho Chrome, Safari và Opera */
.header-canvas .scroll-container::-webkit-scrollbar {
    display: none;
}

.header-canvas .object-actions {
    display: flex;
    flex-wrap: nowrap; /* Không cho phép xuống dòng */
    gap: 15px;
    min-width: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 5px 0;
}



.header-canvas .scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-canvas .scroll-left {
    left: 5px;
}

.header-canvas .scroll-right {
    right: 5px;
}

.header-canvas .action-group {
    display: flex;
    align-items: center;
    margin-right: 15px;
    white-space: nowrap; /* Ngăn các nút xuống dòng */
}

.header-canvas label {
    margin-right: 8px;
    font-weight: 500;
    color: #333;
}

.header-canvas button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
    margin: 0 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.header-canvas button:hover {
    background-color: #e9e9e9;
}

.header-canvas button.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.header-canvas .delete-btn {
    background-color: #f44336;
    color: white;
    border-color: #f44336;
}

.header-canvas .delete-btn:hover {
    background-color: #d32f2f;
}

.header-canvas select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.header-canvas input[type="number"],
.header-canvas input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 60px;
}

.header-canvas input[type="color"] {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.header-canvas input[type="range"] {
    width: 100px;
}

.header-canvas .common-actions {
    display: flex;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    width: 100%;
}

.header-canvas .icon {
    font-weight: bold;
    font-style: normal;
}

.footer-canvas {
    position: relative;
    background-color: #fff;
}

.footer-canvas ul {
    margin: 0;
    list-style: none;
    display: flex;
    padding-left: 30px;
}

.footer-canvas ul li a {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 15px;
    transition: all 0.2s ease;
}

.footer-canvas ul li a:hover {
    background-color: #EDB220;
}

.footer-canvas ul li a img {
    margin-right: 20px;
}

.footer-canvas .pages {
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #fff;
    padding: 30px;
    width: 100%;
    border-bottom: 1px solid #DADADA;
    opacity: 0;
    visibility: hidden;
    transition: .2s;
    max-height: 400px;
    overflow-y: auto;
}

.footer-canvas .pages.show {
    opacity: 1;
    visibility: visible;
}

.footer-canvas .pages img {
    width: 126px;
    height: 80px;
    object-fit: cover;
    margin-right: 30px;
    cursor: pointer;
    transition: .2s;
}

.footer-canvas .pages img:hover {
    filter: brightness(0.9);
}

.footer-canvas .page-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-canvas .page-thumbnail {
    width: 150px;
    height: 100px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.footer-canvas .page-thumbnail:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.footer-canvas .page-thumbnail.active {
    border: 2px solid #4CAF50;
    background-color: #f0f9f0;
}

.footer-canvas .page-number {
    font-size: 24px;
    font-weight: bold;
    color: #555;
}

.footer-canvas .page-actions {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer-canvas .page-thumbnail:hover .page-actions {
    opacity: 1;
}

.footer-canvas .page-actions button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-canvas .page-actions button:hover {
    background-color: #e9e9e9;
}

.footer-canvas .page-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.footer-canvas .add-page-button {
    width: 150px;
    height: 100px;
    border: 2px dashed #ccc;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-canvas .add-page-button:hover {
    border-color: #4CAF50;
    background-color: #f0f9f0;
}

.footer-canvas .add-page-button span {
    color: #666;
    font-weight: bold;
}

.footer-canvas .no-pages {
    padding: 20px;
    text-align: center;
    color: #666;
}

.canvas-area-top-action a.disabled,
.footer-canvas ul li a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.notification {
    background-color: #131921;
    color: white;
    padding: 16px 24px;
    margin: 0 auto;
    border-radius: 8px;
    width: fit-content;
    max-width: 80%;
    animation: slideUp 0.5s ease-out;
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-left: 4px solid #FE4921;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.notification::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #FF9900;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 153, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0);
    }
}

.notification span {
    margin-right: 8px;
}

/* Removed hover effects as requested */

/* Hiệu ứng slide-up */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Hiệu ứng fade-out */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.notification.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}