.color-converter-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.color-converter-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.header-content {
    color: #fff;
}

.calculator-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.calculator-title i {
    font-size: 2.8rem;
}

.calculator-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.calculator-badge {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.converter-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.color-preview-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.color-preview {
    margin-bottom: 20px;
}

.preview-box {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    background-color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.color-picker-wrapper {
    margin-bottom: 20px;
}

.picker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.color-picker {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

.color-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.color-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.color-input:focus {
    outline: none;
    border-color: #f093fb;
}

.apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.color-values-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #f5576c;
}

.copy-all-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-all-btn:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.copy-all-btn.copied {
    background: #52c41a;
    color: #fff;
}

.color-formats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.format-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.format-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.format-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.format-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.copy-btn {
    padding: 5px 10px;
    background: #fff;
    color: #666;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border-color: transparent;
}

.copy-btn.copied {
    background: #52c41a;
    color: #fff;
    border-color: transparent;
}

.format-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    word-break: break-all;
}

.sliders-section {
    grid-column: span 2;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sliders-section .section-title {
    margin-bottom: 25px;
}

.slider-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.slider-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.slider-value {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    min-width: 40px;
    text-align: right;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e8e8e8;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.red-slider::-webkit-slider-thumb { background: #ff6b6b; }
.green-slider::-webkit-slider-thumb { background: #4ecdc4; }
.blue-slider::-webkit-slider-thumb { background: #45b7d1; }
.alpha-slider::-webkit-slider-thumb { background: #f093fb; }

.slider-bar {
    height: 4px;
    border-radius: 2px;
    margin-top: -8px;
    transition: width 0.1s ease;
}

.red-bar { background: linear-gradient(to right, #000, #ff6b6b); }
.green-bar { background: linear-gradient(to right, #000, #4ecdc4); }
.blue-bar { background: linear-gradient(to right, #000, #45b7d1); }
.alpha-bar { background: linear-gradient(to right, transparent, #f093fb); }

.presets-section {
    grid-column: span 2;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.presets-section .section-title {
    margin-bottom: 20px;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.preset-item {
    aspect-ratio: 1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preset-item:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.calculator-guide {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.guide-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.guide-item {
    text-align: center;
}

.guide-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: #fff;
}

.guide-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.guide-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 992px) {
    .converter-main {
        grid-template-columns: 1fr;
    }

    .sliders-section,
    .presets-section {
        grid-column: span 1;
    }

    .slider-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .presets-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .calculator-title {
        font-size: 1.8rem;
    }

    .color-formats {
        grid-template-columns: 1fr;
    }

    .slider-group {
        grid-template-columns: 1fr;
    }

    .presets-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}