.color-preview {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--card-border);
    transition: background-color 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.color-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.color-value-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--card-border);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.color-value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.color-value-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.color-value-content {
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    color: var(--text-primary);
    word-break: break-all;
}

.color-value-card .copy-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-value-card .copy-btn:hover {
    color: var(--accent-color);
    background-color: rgba(67, 97, 238, 0.1);
}

.color-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

.color-tab {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--text-secondary);
}

.color-tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.color-tab-content {
    display: none;
}

.color-tab-content.active {
    display: block;
}

#imageCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: crosshair;
    background-color: var(--dark-color);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--card-border);
}

#colorPicker {
    width: 100% !important;
    height: 300px !important;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.color-tab-content.active {
    display: block !important;
}


/* iro.js overrides */

.iro__colorPicker {
    width: 100% !important;
    height: 100% !important;
}

.iro__wheel {
    width: 100% !important;
    height: 100% !important;
}

.color-history {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.color-history-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--card-border);
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.color-history-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-palettes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.color-palette {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.color-palette:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.palette-colors {
    display: flex;
    height: 100px;
}

.palette-color {
    flex: 1;
    transition: all 0.3s;
}

.palette-color:hover {
    flex: 1.2;
}

.palette-name {
    padding: 12px;
    text-align: center;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.image-picker-wrapper {
    position: relative;
}

.color-display-section {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


/* Google-style color picker */

.google-style-picker {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.color-spectrum {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta, red);
    margin-bottom: 15px;
}

.color-sliders {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-container label {
    min-width: 60px;
    font-weight: 500;
    color: var(--text-secondary);
}

.slider-container input[type="range"] {
    flex: 1;
}

.slider-value {
    min-width: 80px;
    text-align: right;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}


/* Modern notice styling */

.modern-notice {
    background-color: rgba(26, 188, 156, 0.1);
    border-left: 3px solid #1abc9c;
    padding: 10px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}


/* Blog section styling */

.blog-section {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.blog-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.blog-article {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

.blog-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-article h3 {
    margin-bottom: 10px;
}

.blog-article a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-article a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}


/* SEO optimized content styling */

.seo-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
}

.seo-content ul,
.seo-content ol {
    margin-left: 1.5rem;
    line-height: 1.6;
}

.seo-content li {
    margin-bottom: 0.5rem;
}


/* Related Tools Section */

.related-tools-section {
    margin: 40px 0;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.related-tools-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.related-tools-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.tool-card {
    background-color: var(--tool-card-bg);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.tool-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: white;
}

.tool-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

.tool-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tool-card a {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: auto;
}

.tool-card a:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tool-card a i {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.tool-card a:hover i {
    transform: translateX(3px);
}

.section-divider {
    height: 1px;
    background-color: var(--card-border);
    margin: 40px 0;
}


/* Go to Top Button */

.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
}

.go-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.go-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

.go-to-top i {
    font-size: 1.2rem;
}

.upload-icon:hover {
    transform: scale(1.1);
    color: #4895ef !important;
    border-color: #4895ef !important;
    background: rgba(72, 149, 239, 0.2) !important;
}