.gcid-color-preview-panel {
    position: fixed;
    top: 50%;
    right: -350px;
    transform: translateY(-50%);
    width: 350px;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    transition: right 0.3s ease;
    border-radius: 8px 0 0 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.gcid-color-preview-panel.gcid-panel-open {
    right: 0;
}
.gcid-panel-header h3 {
    color: white;
    padding-bottom: 0px;
}
.gcid-panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 0 0 0;
}

.gcid-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.gcid-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-size: 20px;
    line-height: 1;
}

.gcid-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gcid-panel-content {
    padding: 20px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.gcid-color-control {
    margin-bottom: 20px;
}

.gcid-color-control:last-of-type {
    margin-bottom: 0;
}

.gcid-color-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.gcid-color-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gcid-color-input {
    width: 60px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    background: none;
}

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

.gcid-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.gcid-color-text {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: border-color 0.2s ease;
}

.gcid-color-text:focus {
    outline: none;
    border-color: #667eea;
}

.gcid-panel-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.gcid-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
span.gcid-toggle-icon {
    transform: translateY(-2px);
}

.gcid-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.gcid-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.gcid-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.gcid-btn-secondary:hover {
    background: #e0e0e0;
}


.gcid-color-preview-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px 0 0 8px;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    z-index: 999998;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gcid-color-preview-toggle:hover {
    width: 60px;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
}

.gcid-color-preview-toggle.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .gcid-color-preview-panel {
        width: 100%;
        right: -100%;
        top: 0;
        transform: none;
        height: 100vh;
        border-radius: 0;
    }
    
    .gcid-color-preview-panel.gcid-panel-open {
        right: 0;
    }
    
    .gcid-panel-content {
        max-height: calc(100vh - 80px);
    }
}


@keyframes colorChange {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.gcid-color-input:active {
    animation: colorChange 0.6s ease;
}

